From: Chong Yidong Date: Tue, 21 Oct 2008 17:01:53 +0000 (+0000) Subject: (region-active-p): Doc fix. X-Git-Tag: emacs-pretest-23.0.90~2299 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c6f3e207056906eaa33899965891fee5d2c3540d;p=emacs.git (region-active-p): Doc fix. --- diff --git a/lisp/simple.el b/lisp/simple.el index 7327a88c362..7cd321564d9 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3515,9 +3515,9 @@ This function also obeys `use-empty-active-region'." (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