summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-08-13 21:12:20 +0800
committerPo Lu <luangruo@yahoo.com>2022-08-13 21:14:07 +0800
commit0ab572d5c991dee4818d364a65e004d20f1f45a1 (patch)
tree0e1ec67075fdd400e560f2ccced2b421c6d892dd /src/keyboard.c
parentd1578888bf57537e7f3559cdb2c3cef54b081ae9 (diff)
downloademacs-0ab572d5c991dee4818d364a65e004d20f1f45a1.tar.gz
Add new value `dont-save' to `deactivate-mark'
* etc/NEWS: Announce new value of `deactivate-mark'. * lisp/simple.el (deactivate-mark): Handle new value. (bug#57147) * src/keyboard.c (syms_of_keyboard): Update doc string of `deactivate-mark'.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 719226caedc..05c68ea7fbc 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -12650,10 +12650,14 @@ cancels any modification. */);
DEFSYM (Qdeactivate_mark, "deactivate-mark");
DEFVAR_LISP ("deactivate-mark", Vdeactivate_mark,
- doc: /* If an editing command sets this to t, deactivate the mark afterward.
+ doc: /* If an editing command sets this to t, deactivate the mark afterward.
The command loop sets this to nil before each command,
and tests the value when the command returns.
-Buffer modification stores t in this variable. */);
+Buffer modification stores t in this variable.
+
+By default, deactivating the mark will save the contents of the region
+according to `select-active-regions'. If this is set to the symbol
+`dont-save', the region will not be saved.*/);
Vdeactivate_mark = Qnil;
Fmake_variable_buffer_local (Qdeactivate_mark);