diff options
author | Chong Yidong <cyd@gnu.org> | 2012-01-28 22:29:29 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-01-28 22:29:29 +0800 |
commit | 6e9bad1452282beabc27140cd83b6b8b17ec74d6 (patch) | |
tree | 5645c1b3ffe42ddef398638ae3c5d444cd21adaf /lisp/simple.el | |
parent | 93376c5baf50aab8e5095c083ad11dcf9caff36a (diff) | |
download | emacs-6e9bad1452282beabc27140cd83b6b8b17ec74d6.tar.gz |
* lisp/simple.el (deactivate-mark): Doc fix (Bug#8614).
Diffstat (limited to 'lisp/simple.el')
-rw-r--r-- | lisp/simple.el | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index d9468ed5cf6..cc56dfe04ce 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3751,10 +3751,18 @@ a mistake; see the documentation of `set-mark'." (signal 'mark-inactive nil))) (defsubst deactivate-mark (&optional force) - "Deactivate the mark by setting `mark-active' to nil. -Unless FORCE is non-nil, this function does nothing if Transient -Mark mode is disabled. -This function also runs `deactivate-mark-hook'." + "Deactivate the mark. +If Transient Mark mode is disabled, this function normally does +nothing; but if FORCE is non-nil, it deactivates the mark anyway. + +Deactivating the mark sets `mark-active' to nil, updates the +primary selection according to `select-active-regions', and runs +`deactivate-mark-hook'. + +If Transient Mark mode was temporarily enabled, reset the value +of the variable `transient-mark-mode'; if this causes Transient +Mark mode to be disabled, don't change `mark-active' to nil or +run `deactivate-mark-hook'." (when (or transient-mark-mode force) (when (and (if (eq select-active-regions 'only) (eq (car-safe transient-mark-mode) 'only) |