]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/simple.el (use-region-beginning, use-region-end): Doc fix.
authorEli Zaretskii <eliz@gnu.org>
Thu, 29 Aug 2024 09:33:30 +0000 (12:33 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:43 +0000 (09:51 +0200)
(cherry picked from commit 427fb319dabf2b7fa4526f244d1e8d57f9e6cca0)

lisp/simple.el

index 21b54ed369691874dd2cb7f11badca266bec8710..889702ed65b512a149d26fc8b2d5ccc903ce69fc 100644 (file)
@@ -6956,11 +6956,15 @@ point otherwise."
   :group 'editing-basics)
 
 (defun use-region-beginning ()
-  "Return the start of the region if `use-region-p'."
+  "Return the start of the region if `use-region-p' returns non-nil.
+This is a convenience function to use in `interactive' forms of
+commands that need to act on the region when it is active."
   (and (use-region-p) (region-beginning)))
 
 (defun use-region-end ()
-  "Return the end of the region if `use-region-p'."
+  "Return the end of the region if `use-region-p' returns non-nil.
+This is a convenience function to use in `interactive' forms of
+commands that need to act on the region when it is active."
   (and (use-region-p) (region-end)))
 
 (defun use-region-noncontiguous-p ()