; * 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)
committerEli Zaretskii <eliz@gnu.org>
Thu, 29 Aug 2024 09:33:30 +0000 (12:33 +0300)
lisp/simple.el

index 5961afa20e99b01ccc4775cc24d1bc29093860a1..3054c8ab6a770ac27766c5eff9bfa0c48389ee76 100644 (file)
@@ -7085,11 +7085,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 ()