aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/callint.c25
2 files changed, 8 insertions, 23 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 244b1f6a158..e0a02b39dc0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * callint.c (Fcall_interactively): For '^' just delegate the work to
4 handle-shift-selection.
5 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6
12009-03-24 Chong Yidong <cyd@stupidchicken.com> 72009-03-24 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * editfns.c (Ffloat_time): Doc fix (Bug#2768). 9 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
diff --git a/src/callint.c b/src/callint.c
index 10f5f63c864..3641fbc5b77 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -51,7 +51,7 @@ extern Lisp_Object Qface, Qminibuffer_prompt;
51 even if mark_active is 0. */ 51 even if mark_active is 0. */
52Lisp_Object Vmark_even_if_inactive; 52Lisp_Object Vmark_even_if_inactive;
53 53
54Lisp_Object Vshift_select_mode, Qhandle_shift_selection; 54Lisp_Object Qhandle_shift_selection;
55 55
56Lisp_Object Vmouse_leave_buffer_hook, Qmouse_leave_buffer_hook; 56Lisp_Object Vmouse_leave_buffer_hook, Qmouse_leave_buffer_hook;
57 57
@@ -454,14 +454,7 @@ invoke it. If KEYS is omitted or nil, the return value of
454 } 454 }
455 else if (*string == '^') 455 else if (*string == '^')
456 { 456 {
457 if (! NILP (Vshift_select_mode)) 457 call0 (Qhandle_shift_selection);
458 call1 (Qhandle_shift_selection, Qnil);
459 /* Even if shift-select-mode is off, temporarily active
460 regions could be set using the mouse, and should be
461 deactivated. */
462 else if (CONSP (Vtransient_mark_mode)
463 && EQ (XCAR (Vtransient_mark_mode), Qonly))
464 call1 (Qhandle_shift_selection, Qt);
465 string++; 458 string++;
466 } 459 }
467 else break; 460 else break;
@@ -994,20 +987,6 @@ turns off region highlighting, but commands that use the mark
994behave as if the mark were still active. */); 987behave as if the mark were still active. */);
995 Vmark_even_if_inactive = Qt; 988 Vmark_even_if_inactive = Qt;
996 989
997 DEFVAR_LISP ("shift-select-mode", &Vshift_select_mode,
998 doc: /* When non-nil, shifted motion keys activate the mark momentarily.
999
1000While the mark is activated in this way, any shift-translated point
1001motion key extends the region, and if Transient Mark mode was off, it
1002is temporarily turned on. Furthermore, the mark will be deactivated
1003by any subsequent point motion key that was not shift-translated, or
1004by any action that normally deactivates the mark in Transient Mark
1005mode.
1006
1007See `this-command-keys-shift-translated' for the meaning of
1008shift-translation. */);
1009 Vshift_select_mode = Qt;
1010
1011 DEFVAR_LISP ("mouse-leave-buffer-hook", &Vmouse_leave_buffer_hook, 990 DEFVAR_LISP ("mouse-leave-buffer-hook", &Vmouse_leave_buffer_hook,
1012 doc: /* Hook to run when about to switch windows with a mouse command. 991 doc: /* Hook to run when about to switch windows with a mouse command.
1013Its purpose is to give temporary modes such as Isearch mode 992Its purpose is to give temporary modes such as Isearch mode