changeset 87410:5ef4fbedb516

(region-active-p): Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Tue, 25 Dec 2007 23:00:51 +0000
parents 0c8af1419a88
children 9ac481bc897b
files lisp/simple.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Tue Dec 25 23:00:07 2007 +0000
+++ b/lisp/simple.el	Tue Dec 25 23:00:51 2007 +0000
@@ -3378,7 +3378,10 @@
        (or use-empty-active-region (> (region-end) (region-beginning)))))
 
 (defun region-active-p ()
-  "Return t if Transient Mark mode is enabled and the mark is active."
+  "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'."
   (and transient-mark-mode mark-active))
 
 (defvar mark-ring nil