]> git.eshelyaron.com Git - emacs.git/commitdiff
lisp/simple.el: Indicate when a list of pairs is meant in a docstring
authorJohn Wiegley <johnw@newartisans.com>
Tue, 26 Sep 2017 19:35:52 +0000 (12:35 -0700)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 26 Sep 2017 19:36:57 +0000 (12:36 -0700)
lisp/simple.el

index d21b15d5314c0ceda75775a542b53f8e8e48376a..469557713d72f02308c173f0dc9c8b3354f57c16 100644 (file)
@@ -1003,7 +1003,7 @@ 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 pair of (START . END) positions.
+as a list of pairs of (START . END) positions.
 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.")
@@ -5473,7 +5473,7 @@ also checks the value of `use-empty-active-region'."
        (progn (cl-assert (mark)) t)))
 
 (defun region-bounds ()
-  "Return the boundaries of the region as a pair of (START . END) positions."
+  "Return the boundaries of the region as a list of pairs of (START . END) positions."
   (funcall region-extract-function 'bounds))
 
 (defun region-noncontiguous-p ()