diff options
| author | Chong Yidong | 2012-01-28 22:29:29 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-01-28 22:29:29 +0800 |
| commit | 6e9bad1452282beabc27140cd83b6b8b17ec74d6 (patch) | |
| tree | 5645c1b3ffe42ddef398638ae3c5d444cd21adaf | |
| parent | 93376c5baf50aab8e5095c083ad11dcf9caff36a (diff) | |
| download | emacs-6e9bad1452282beabc27140cd83b6b8b17ec74d6.tar.gz emacs-6e9bad1452282beabc27140cd83b6b8b17ec74d6.zip | |
* lisp/simple.el (deactivate-mark): Doc fix (Bug#8614).
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/simple.el | 16 |
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 | ||
| 48 | 2012-01-28 Chong Yidong <cyd@gnu.org> | 48 | 2012-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. |
| 3755 | Unless FORCE is non-nil, this function does nothing if Transient | 3755 | If Transient Mark mode is disabled, this function normally does |
| 3756 | Mark mode is disabled. | 3756 | nothing; but if FORCE is non-nil, it deactivates the mark anyway. |
| 3757 | This function also runs `deactivate-mark-hook'." | 3757 | |
| 3758 | Deactivating the mark sets `mark-active' to nil, updates the | ||
| 3759 | primary selection according to `select-active-regions', and runs | ||
| 3760 | `deactivate-mark-hook'. | ||
| 3761 | |||
| 3762 | If Transient Mark mode was temporarily enabled, reset the value | ||
| 3763 | of the variable `transient-mark-mode'; if this causes Transient | ||
| 3764 | Mark mode to be disabled, don't change `mark-active' to nil or | ||
| 3765 | run `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) |