Mercurial > emacs
changeset 98995:9a29db80cf9f
(region-active-p): Doc fix.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Tue, 21 Oct 2008 17:01:53 +0000 |
parents | 5b6498622ab2 |
children | 2bf20cba5187 |
files | lisp/simple.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/simple.el Tue Oct 21 17:01:45 2008 +0000 +++ b/lisp/simple.el Tue Oct 21 17:01:53 2008 +0000 @@ -3515,9 +3515,9 @@ (defun region-active-p () "Return t if Transient Mark mode is enabled and the mark is active. -This is NOT the best function to use to test whether a command should -operate on the region instead of the usual behavior -- for that, -use `use-region-p'." +To test whether a command should operate on the region instead of +the usual behavior, use `use-region-p' instead. That returns nil +for empty regions when `use-empty-active-region' is nil." (and transient-mark-mode mark-active)) (defvar mark-ring nil