]> code.delx.au - gnu-emacs/commitdiff
delsel doc touch ups
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 29 Apr 2016 22:37:31 +0000 (00:37 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 1 May 2016 17:27:10 +0000 (19:27 +0200)
* lisp/delsel.el (delete-selection-helper): Use non-nil
instead of t and clarify function return values (bug#18089).

(cherry picked from commit d7a5b5be9a5869bcd233434ec3103dd1976d7df7)

lisp/delsel.el

index 6a819ebbf67b8466b1b0cef561ee7c503822bfb0..da4223f49fe8901b07cb00be10ad3f94a4bc92bb 100644 (file)
@@ -171,16 +171,17 @@ With ARG, repeat that many times.  `C-u' means until end of buffer."
      active region.
  `kill'
      `kill-region' is used on the selection, rather than
-     `delete-region'.  (Text selected with the mouse will typically
-     be yankable anyhow.)
- t
-     The normal case: delete the active region prior to executing
-     the command which will insert replacement text.
+     `delete-region'.  (Text selected with the mouse will
+     typically be yankable anyhow.)
  FUNCTION
-     For commands which need to dynamically determine this behavior.
-     FUNCTION should take no argument and return one of the above
-     values, or nil.  In the latter case, FUNCTION should itself
-     do with the active region whatever is appropriate."
+     For commands which need to dynamically determine this
+     behavior.  FUNCTION should take no argument and return a
+     value acceptable as TYPE, or nil.  In the latter case,
+     FUNCTION should itself do with the active region whatever is
+     appropriate.
+ Other non-nil values
+     The normal case: delete the active region prior to executing
+     the command which will insert replacement text."
   (condition-case data
       (cond ((eq type 'kill)            ;Deprecated, backward compatibility.
             (delete-active-region t)