From: Richard M. Stallman Date: Tue, 25 Dec 2007 23:00:51 +0000 (+0000) Subject: (region-active-p): Doc fix. X-Git-Tag: emacs-pretest-23.0.90~8831 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=afa39f21c8d27bed08525ee0ed23692f12d2b3e2;p=emacs.git (region-active-p): Doc fix. --- diff --git a/lisp/simple.el b/lisp/simple.el index 0537862ab83..0cbec53fe66 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -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