aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2018-04-24 14:06:20 -0400
committerStefan Monnier2018-04-24 14:06:20 -0400
commit0b432248d8915eaab730d6e3050c43be5622dd87 (patch)
tree57f255105f3ba9196a0f2978fb34b46c32d54d47
parentd6e2c593180934926fa4cc5b58fdab82b20f5f14 (diff)
downloademacs-0b432248d8915eaab730d6e3050c43be5622dd87.tar.gz
emacs-0b432248d8915eaab730d6e3050c43be5622dd87.zip
* lisp/simple.el (region-extract-function): Don't hide the 'nil' case.
-rw-r--r--lisp/simple.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 0113156fbe0..aa266fd36ba 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1009,14 +1009,14 @@ instead of deleted."
1009 (t 1009 (t
1010 (filter-buffer-substring (region-beginning) (region-end) method))))) 1010 (filter-buffer-substring (region-beginning) (region-end) method)))))
1011 "Function to get the region's content. 1011 "Function to get the region's content.
1012Called with one argument METHOD. 1012Called with one argument METHOD which can be:
1013If METHOD is `delete-only', then delete the region; the return value 1013- nil: return the content as a string.
1014is undefined. If METHOD is nil, then return the content as a string. 1014- `delete-only': delete the region; the return value is undefined.
1015If METHOD is `bounds', then return the boundaries of the region 1015- `bounds': return the boundaries of the region as a list of cons
1016as a list of cons cells of the form (START . END). 1016 cells of the form (START . END).
1017If METHOD is anything else, delete the region and return its content 1017- anything else: delete the region and return its content
1018as a string, after filtering it with `filter-buffer-substring', which 1018 as a string, after filtering it with `filter-buffer-substring', which
1019is called with METHOD as its 3rd argument.") 1019 is called with METHOD as its 3rd argument.")
1020 1020
1021(defvar region-insert-function 1021(defvar region-insert-function
1022 (lambda (lines) 1022 (lambda (lines)