emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-30 427fb319dab: ; * lisp/simple.el (use-region-beginning, use-regi


From: Eli Zaretskii
Subject: emacs-30 427fb319dab: ; * lisp/simple.el (use-region-beginning, use-region-end): Doc fix.
Date: Thu, 29 Aug 2024 05:33:56 -0400 (EDT)

branch: emacs-30
commit 427fb319dabf2b7fa4526f244d1e8d57f9e6cca0
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * lisp/simple.el (use-region-beginning, use-region-end): Doc fix.
---
 lisp/simple.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 5961afa20e9..3054c8ab6a7 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]