diff options
| author | Chong Yidong | 2009-04-06 01:21:48 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-04-06 01:21:48 +0000 |
| commit | 337c561c774d3940249be381625cdf4294471099 (patch) | |
| tree | 5ce2ecaa7cecdb8435e70ed4de35f99a811e9295 | |
| parent | 47af2f4b96cd4ef4c2a28ca6b217409b8d1ae384 (diff) | |
| download | emacs-337c561c774d3940249be381625cdf4294471099.tar.gz emacs-337c561c774d3940249be381625cdf4294471099.zip | |
* simple.el (handle-shift-selection): Clarify docstring.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/simple.el | 28 |
2 files changed, 18 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 615e6365d53..485b6d06401 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2009-04-05 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * simple.el (handle-shift-selection): Clarify docstring. | ||
| 4 | |||
| 1 | 2009-04-05 Michael Albinus <michael.albinus@gmx.de> | 5 | 2009-04-05 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | * dired-aux.el (dired-copy-file-recursive): Set mode to "700" if | 7 | * dired-aux.el (dired-copy-file-recursive): Set mode to "700" if |
diff --git a/lisp/simple.el b/lisp/simple.el index d6245a3b76b..0b7ed49a3a0 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3760,20 +3760,20 @@ shift-translation." | |||
| 3760 | :group 'editing-basics) | 3760 | :group 'editing-basics) |
| 3761 | 3761 | ||
| 3762 | (defun handle-shift-selection () | 3762 | (defun handle-shift-selection () |
| 3763 | "Activate/deactivate mark depending on invocation thru ``shift translation.'' | 3763 | "Activate/deactivate mark depending on invocation thru shift translation. |
| 3764 | 3764 | This function is called by `call-interactively' when a command | |
| 3765 | \(See `this-command-keys-shift-translated' for the meaning of | 3765 | with a `^' character in its `interactive' spec is invoked, before |
| 3766 | shift translation.) | 3766 | running the command itself. |
| 3767 | 3767 | ||
| 3768 | This is called whenever a command with a `^' character in its | 3768 | If `shift-select-mode' is enabled and the command was invoked |
| 3769 | `interactive' spec is invoked. | 3769 | through shift translation, set the mark and activate the region |
| 3770 | Its behavior is controlled by `shift-select-mode'. | 3770 | temporarily, unless it was already set in this way. See |
| 3771 | 3771 | `this-command-keys-shift-translated' for the meaning of shift | |
| 3772 | If the command was invoked through shift translation, set the | 3772 | translation. |
| 3773 | mark and activate the region temporarily, unless it was already | 3773 | |
| 3774 | set in this way. If the command was invoked without shift | 3774 | Otherwise, if the region has been activated temporarily, |
| 3775 | translation, or if the region was activated by the mouse, | 3775 | deactivate it, and restore the variable `transient-mark-mode' to |
| 3776 | deactivate the mark if the region is temporarily active." | 3776 | its earlier value." |
| 3777 | (cond ((and shift-select-mode this-command-keys-shift-translated) | 3777 | (cond ((and shift-select-mode this-command-keys-shift-translated) |
| 3778 | (unless (and mark-active | 3778 | (unless (and mark-active |
| 3779 | (eq (car-safe transient-mark-mode) 'only)) | 3779 | (eq (car-safe transient-mark-mode) 'only)) |