aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-01-28 22:29:29 +0800
committerChong Yidong2012-01-28 22:29:29 +0800
commit6e9bad1452282beabc27140cd83b6b8b17ec74d6 (patch)
tree5645c1b3ffe42ddef398638ae3c5d444cd21adaf
parent93376c5baf50aab8e5095c083ad11dcf9caff36a (diff)
downloademacs-6e9bad1452282beabc27140cd83b6b8b17ec74d6.tar.gz
emacs-6e9bad1452282beabc27140cd83b6b8b17ec74d6.zip
* lisp/simple.el (deactivate-mark): Doc fix (Bug#8614).
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/simple.el16
2 files changed, 14 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8bde5f91046..e48f16ff8ce 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -47,6 +47,8 @@
47 47
482012-01-28 Chong Yidong <cyd@gnu.org> 482012-01-28 Chong Yidong <cyd@gnu.org>
49 49
50 * simple.el (deactivate-mark): Doc fix (Bug#8614).
51
50 * tooltip.el (tooltip-mode): Doc fix. 52 * tooltip.el (tooltip-mode): Doc fix.
51 (tooltip-use-echo-area): Mark as obsolete (Bug#6595). 53 (tooltip-use-echo-area): Mark as obsolete (Bug#6595).
52 54
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'."
3751 (signal 'mark-inactive nil))) 3751 (signal 'mark-inactive nil)))
3752 3752
3753(defsubst deactivate-mark (&optional force) 3753(defsubst deactivate-mark (&optional force)
3754 "Deactivate the mark by setting `mark-active' to nil. 3754 "Deactivate the mark.
3755Unless FORCE is non-nil, this function does nothing if Transient 3755If Transient Mark mode is disabled, this function normally does
3756Mark mode is disabled. 3756nothing; but if FORCE is non-nil, it deactivates the mark anyway.
3757This function also runs `deactivate-mark-hook'." 3757
3758Deactivating the mark sets `mark-active' to nil, updates the
3759primary selection according to `select-active-regions', and runs
3760`deactivate-mark-hook'.
3761
3762If Transient Mark mode was temporarily enabled, reset the value
3763of the variable `transient-mark-mode'; if this causes Transient
3764Mark mode to be disabled, don't change `mark-active' to nil or
3765run `deactivate-mark-hook'."
3758 (when (or transient-mark-mode force) 3766 (when (or transient-mark-mode force)
3759 (when (and (if (eq select-active-regions 'only) 3767 (when (and (if (eq select-active-regions 'only)
3760 (eq (car-safe transient-mark-mode) 'only) 3768 (eq (car-safe transient-mark-mode) 'only)