From 0b432248d8915eaab730d6e3050c43be5622dd87 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 24 Apr 2018 14:06:20 -0400 Subject: [PATCH] * 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 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) -- 2.39.2