[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 c355774 21/64: delsel doc touch ups
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] emacs-25 c355774 21/64: delsel doc touch ups |
Date: |
Sun, 01 May 2016 18:18:40 +0000 |
branch: emacs-25
commit c3557740c9058413993f51258a01dc9f3601f6f3
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
delsel doc touch ups
* 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 | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/lisp/delsel.el b/lisp/delsel.el
index 6a819eb..da4223f 100644
--- a/lisp/delsel.el
+++ b/lisp/delsel.el
@@ -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)
- [Emacs-diffs] emacs-25 3fc1ed8 02/64: Mention `lisp-indent-function' in the lispref manual, (continued)
- [Emacs-diffs] emacs-25 3fc1ed8 02/64: Mention `lisp-indent-function' in the lispref manual, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 0a14d84 04/64: Clarify some doc strings, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 cf33ae0 05/64: Clarify the `interactive' doc string slightly, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 de8349e 06/64: Doc string change to enable-recursive-minibuffers, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 9bd2af8 01/64: Clarify doc string of internal compilation function, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 4a2f33d 20/64: Doc fixes for menu-bar.el, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 7b85885 22/64: Doc fix, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 cc00738 09/64: find-lisp doc touchups, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 651182d 24/64: Doc fixed for next-error-buffer-p, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 351c079 03/64: Add some concept index entries for custom types, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 c355774 21/64: delsel doc touch ups,
Lars Ingebrigtsen <=
- [Emacs-diffs] emacs-25 05194cb 26/64: Doc fix for font-lock-remove-keywords, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 28ef870 11/64: Doc tweak, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 d815ba5 23/64: Tiny doc fix, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 92559c7 10/64: Link from (emacs)Exiting to (lisp)Killing Emacs, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 bc6c294 12/64: Doc fix for `kbd', Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 71795d4 19/64: Doc fix, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 3852fd6 18/64: Minor doc clarification, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 f92d0aa 36/64: insert-file-contents-literally doc fix, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 ec392ff 40/64: cursor-type doc fix, Lars Ingebrigtsen, 2016/05/01
- [Emacs-diffs] emacs-25 a73de71 30/64: Doc fix for insert-pair-alist, Lars Ingebrigtsen, 2016/05/01