aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-04-06 01:21:48 +0000
committerChong Yidong2009-04-06 01:21:48 +0000
commit337c561c774d3940249be381625cdf4294471099 (patch)
tree5ce2ecaa7cecdb8435e70ed4de35f99a811e9295
parent47af2f4b96cd4ef4c2a28ca6b217409b8d1ae384 (diff)
downloademacs-337c561c774d3940249be381625cdf4294471099.tar.gz
emacs-337c561c774d3940249be381625cdf4294471099.zip
* simple.el (handle-shift-selection): Clarify docstring.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/simple.el28
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 @@
12009-04-05 Chong Yidong <cyd@stupidchicken.com>
2
3 * simple.el (handle-shift-selection): Clarify docstring.
4
12009-04-05 Michael Albinus <michael.albinus@gmx.de> 52009-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 3764This function is called by `call-interactively' when a command
3765\(See `this-command-keys-shift-translated' for the meaning of 3765with a `^' character in its `interactive' spec is invoked, before
3766shift translation.) 3766running the command itself.
3767 3767
3768This is called whenever a command with a `^' character in its 3768If `shift-select-mode' is enabled and the command was invoked
3769`interactive' spec is invoked. 3769through shift translation, set the mark and activate the region
3770Its behavior is controlled by `shift-select-mode'. 3770temporarily, unless it was already set in this way. See
3771 3771`this-command-keys-shift-translated' for the meaning of shift
3772If the command was invoked through shift translation, set the 3772translation.
3773mark and activate the region temporarily, unless it was already 3773
3774set in this way. If the command was invoked without shift 3774Otherwise, if the region has been activated temporarily,
3775translation, or if the region was activated by the mouse, 3775deactivate it, and restore the variable `transient-mark-mode' to
3776deactivate the mark if the region is temporarily active." 3776its 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))