From: Stefan Monnier Date: Tue, 24 Apr 2018 18:06:20 +0000 (-0400) Subject: * lisp/simple.el (region-extract-function): Don't hide the 'nil' case. X-Git-Tag: emacs-26.1~59 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0b43224;p=emacs.git * lisp/simple.el (region-extract-function): Don't hide the 'nil' case. --- 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." (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)