emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-26 df64da8: * lisp/simple.el (region-extract-functio


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 df64da8: * lisp/simple.el (region-extract-function): Doc fix. (Bug#33167)
Date: Sat, 27 Oct 2018 07:09:16 -0400 (EDT)

branch: emacs-26
commit df64da8eb845c9f07ee93bfbf28af41a01a2e83f
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    * lisp/simple.el (region-extract-function): Doc fix.  (Bug#33167)
---
 lisp/simple.el | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 0e5dadc..29bb9cb 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1011,13 +1011,16 @@ instead of deleted."
         (filter-buffer-substring (region-beginning) (region-end) method)))))
   "Function to get the region's content.
 Called with one argument METHOD which can be:
-- nil: return the content as a string.
+- nil: return the content as a string (list of strings for
+  non-contiguous regions).
 - `delete-only': delete the region; the return value is undefined.
-- `bounds': return the boundaries of the region as a list of cons
-  cells of the form (START . END).
+- `bounds': return the boundaries of the region as a list of one
+  or more cons cells of the form (START . END).
 - anything else: delete the region and return its content
-  as a string, after filtering it with `filter-buffer-substring', which
-  is called with METHOD as its 3rd argument.")
+  as a string (or list of strings for non-contiguous regions),
+  after filtering it with `filter-buffer-substring', which
+  is called, for each contiguous sub-region, with METHOD as its
+  3rd argument.")
 
 (defvar region-insert-function
   (lambda (lines)



reply via email to

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