Mercurial > emacs
changeset 57999:3166194a373f
(command_loop_1): Change Vtransient_mark_mode
before deciding whether to inctivate mark.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 07 Nov 2004 03:49:38 +0000 |
parents | a017cc23b31d |
children | 5c2294856939 |
files | src/keyboard.c |
diffstat | 1 files changed, 8 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Sun Nov 07 03:48:56 2004 +0000 +++ b/src/keyboard.c Sun Nov 07 03:49:38 2004 +0000 @@ -1840,6 +1840,14 @@ if (!NILP (current_buffer->mark_active) && !NILP (Vrun_hooks)) { + /* Setting transient-mark-mode to `only' is a way of + turning it on for just one command. */ + + if (EQ (Vtransient_mark_mode, Qidentity)) + Vtransient_mark_mode = Qnil; + if (EQ (Vtransient_mark_mode, Qonly)) + Vtransient_mark_mode = Qidentity; + if (!NILP (Vdeactivate_mark) && !NILP (Vtransient_mark_mode)) { /* We could also call `deactivate'mark'. */ @@ -1855,16 +1863,6 @@ call1 (Vrun_hooks, intern ("activate-mark-hook")); } - /* Setting transient-mark-mode to `only' is a way of - turning it on for just one command. */ - if (!NILP (current_buffer->mark_active) && !NILP (Vrun_hooks)) - { - if (EQ (Vtransient_mark_mode, Qidentity)) - Vtransient_mark_mode = Qnil; - if (EQ (Vtransient_mark_mode, Qonly)) - Vtransient_mark_mode = Qidentity; - } - finalize: if (current_buffer == prev_buffer