# HG changeset patch # User Chong Yidong # Date 1224608513 0 # Node ID 9a29db80cf9fcd5f01b63c3d8a099483c091b833 # Parent 5b6498622ab2199dab90e4c6cdb0948216ec3d98 (region-active-p): Doc fix. diff -r 5b6498622ab2 -r 9a29db80cf9f lisp/simple.el --- a/lisp/simple.el Tue Oct 21 17:01:45 2008 +0000 +++ b/lisp/simple.el Tue Oct 21 17:01:53 2008 +0000 @@ -3515,9 +3515,9 @@ (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