]> git.eshelyaron.com Git - emacs.git/commitdiff
(region-active-p): Doc fix.
authorRichard M. Stallman <rms@gnu.org>
Tue, 25 Dec 2007 23:00:51 +0000 (23:00 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 25 Dec 2007 23:00:51 +0000 (23:00 +0000)
lisp/simple.el

index 0537862ab837cc50096ed689332879762d4a8b0b..0cbec53fe66a1a08d085549c2b16477be8c65922 100644 (file)
@@ -3378,7 +3378,10 @@ This function also obeys `use-empty-active-region'."
        (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