aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-04-30 00:37:31 +0200
committerLars Ingebrigtsen2016-04-30 00:37:31 +0200
commitd7a5b5be9a5869bcd233434ec3103dd1976d7df7 (patch)
tree9f9a8228706dd48ea1cfc71132f5fdb31dc0bbde
parent33d2c67bff0992ecbc0fe38556683242b9d1a4ae (diff)
downloademacs-d7a5b5be9a5869bcd233434ec3103dd1976d7df7.tar.gz
emacs-d7a5b5be9a5869bcd233434ec3103dd1976d7df7.zip
delsel doc touch ups
* lisp/delsel.el (delete-selection-helper): Use non-nil instead of t and clarify function return values (bug#18089).
-rw-r--r--lisp/delsel.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/delsel.el b/lisp/delsel.el
index 6a819ebbf67..da4223f49fe 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."
171 active region. 171 active region.
172 `kill' 172 `kill'
173 `kill-region' is used on the selection, rather than 173 `kill-region' is used on the selection, rather than
174 `delete-region'. (Text selected with the mouse will typically 174 `delete-region'. (Text selected with the mouse will
175 be yankable anyhow.) 175 typically be yankable anyhow.)
176 t
177 The normal case: delete the active region prior to executing
178 the command which will insert replacement text.
179 FUNCTION 176 FUNCTION
180 For commands which need to dynamically determine this behavior. 177 For commands which need to dynamically determine this
181 FUNCTION should take no argument and return one of the above 178 behavior. FUNCTION should take no argument and return a
182 values, or nil. In the latter case, FUNCTION should itself 179 value acceptable as TYPE, or nil. In the latter case,
183 do with the active region whatever is appropriate." 180 FUNCTION should itself do with the active region whatever is
181 appropriate.
182 Other non-nil values
183 The normal case: delete the active region prior to executing
184 the command which will insert replacement text."
184 (condition-case data 185 (condition-case data
185 (cond ((eq type 'kill) ;Deprecated, backward compatibility. 186 (cond ((eq type 'kill) ;Deprecated, backward compatibility.
186 (delete-active-region t) 187 (delete-active-region t)