[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 0b43224: * lisp/simple.el (region-extract-functio
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] emacs-26 0b43224: * lisp/simple.el (region-extract-function): Don't hide the 'nil' case. |
Date: |
Tue, 24 Apr 2018 14:06:27 -0400 (EDT) |
branch: emacs-26
commit 0b432248d8915eaab730d6e3050c43be5622dd87
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* lisp/simple.el (region-extract-function): Don't hide the 'nil' case.
---
lisp/simple.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/lisp/simple.el b/lisp/simple.el
index 0113156..aa266fd 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1009,14 +1009,14 @@ instead of deleted."
(t
(filter-buffer-substring (region-beginning) (region-end) method)))))
"Function to get the region's content.
-Called with one argument METHOD.
-If METHOD is `delete-only', then delete the region; the return value
-is undefined. If METHOD is nil, then return the content as a string.
-If METHOD is `bounds', then return the boundaries of the region
-as a list of cons cells of the form (START . END).
-If METHOD is 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.")
+Called with one argument METHOD which can be:
+- nil: return the content as a string.
+- `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).
+- 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.")
(defvar region-insert-function
(lambda (lines)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 0b43224: * lisp/simple.el (region-extract-function): Don't hide the 'nil' case.,
Stefan Monnier <=