From c6f3e207056906eaa33899965891fee5d2c3540d Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Tue, 21 Oct 2008 17:01:53 +0000 Subject: [PATCH] (region-active-p): Doc fix. --- lisp/simple.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 7327a88c362..7cd321564d9 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3515,9 +3515,9 @@ This function also obeys `use-empty-active-region'." (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 -- 2.39.5