# HG changeset patch # User Richard M. Stallman # Date 1198623651 0 # Node ID 5ef4fbedb51634d1ef56b460ba2aaa63ee2fccb8 # Parent 0c8af1419a88cea1de495c9c6b5199711c33a745 (region-active-p): Doc fix. diff -r 0c8af1419a88 -r 5ef4fbedb516 lisp/simple.el --- 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