diff options
| author | Richard M. Stallman | 2004-11-07 03:50:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-11-07 03:50:11 +0000 |
| commit | f28c1bd9cd71668830a1db49d8e15be8a817c84f (patch) | |
| tree | b5be19a3d5fbb0db6ec495bd38f839db5c7900c2 | |
| parent | c9aa6a41844ea095db79d56251cf0bf23e3c5376 (diff) | |
| download | emacs-f28c1bd9cd71668830a1db49d8e15be8a817c84f.tar.gz emacs-f28c1bd9cd71668830a1db49d8e15be8a817c84f.zip | |
(command_loop_1): Change Vtransient_mark_mode
before deciding whether to inctivate mark.
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/keyboard.c | 18 |
2 files changed, 19 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b65bb2d5714..ea570820e1a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2004-11-06 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * callint.c (Fcall_interactively): Avoid reusing EVENT for other data. | ||
| 4 | |||
| 5 | * xfaces.c (merge_named_face): GCPRO the face_name in the | ||
| 6 | named_merge_point struct that we make. | ||
| 7 | (merge_face_heights): Eliminate GCPRO arg. All callers changed. | ||
| 8 | |||
| 9 | * keyboard.c (command_loop_1): Change Vtransient_mark_mode | ||
| 10 | before deciding whether to inactivate mark. | ||
| 11 | |||
| 1 | 2004-11-06 Lars Brinkhoff <lars@nocrew.org> | 12 | 2004-11-06 Lars Brinkhoff <lars@nocrew.org> |
| 2 | 13 | ||
| 3 | * config.in: Regenerate (add HAVE_GETRUSAGE). | 14 | * config.in: Regenerate (add HAVE_GETRUSAGE). |
| @@ -17,7 +28,6 @@ | |||
| 17 | * xmenu.c (popup_get_selection, create_and_show_popup_menu) | 28 | * xmenu.c (popup_get_selection, create_and_show_popup_menu) |
| 18 | (create_and_show_dialog): Revert change from 2004-10-31. | 29 | (create_and_show_dialog): Revert change from 2004-10-31. |
| 19 | 30 | ||
| 20 | |||
| 21 | 2004-11-05 Luc Teirlinck <teirllm@auburn.edu> | 31 | 2004-11-05 Luc Teirlinck <teirllm@auburn.edu> |
| 22 | 32 | ||
| 23 | * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix. | 33 | * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix. |
diff --git a/src/keyboard.c b/src/keyboard.c index d145ec50d2c..e2c21793c6c 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1840,6 +1840,14 @@ command_loop_1 () | |||
| 1840 | 1840 | ||
| 1841 | if (!NILP (current_buffer->mark_active) && !NILP (Vrun_hooks)) | 1841 | if (!NILP (current_buffer->mark_active) && !NILP (Vrun_hooks)) |
| 1842 | { | 1842 | { |
| 1843 | /* Setting transient-mark-mode to `only' is a way of | ||
| 1844 | turning it on for just one command. */ | ||
| 1845 | |||
| 1846 | if (EQ (Vtransient_mark_mode, Qidentity)) | ||
| 1847 | Vtransient_mark_mode = Qnil; | ||
| 1848 | if (EQ (Vtransient_mark_mode, Qonly)) | ||
| 1849 | Vtransient_mark_mode = Qidentity; | ||
| 1850 | |||
| 1843 | if (!NILP (Vdeactivate_mark) && !NILP (Vtransient_mark_mode)) | 1851 | if (!NILP (Vdeactivate_mark) && !NILP (Vtransient_mark_mode)) |
| 1844 | { | 1852 | { |
| 1845 | /* We could also call `deactivate'mark'. */ | 1853 | /* We could also call `deactivate'mark'. */ |
| @@ -1855,16 +1863,6 @@ command_loop_1 () | |||
| 1855 | call1 (Vrun_hooks, intern ("activate-mark-hook")); | 1863 | call1 (Vrun_hooks, intern ("activate-mark-hook")); |
| 1856 | } | 1864 | } |
| 1857 | 1865 | ||
| 1858 | /* Setting transient-mark-mode to `only' is a way of | ||
| 1859 | turning it on for just one command. */ | ||
| 1860 | if (!NILP (current_buffer->mark_active) && !NILP (Vrun_hooks)) | ||
| 1861 | { | ||
| 1862 | if (EQ (Vtransient_mark_mode, Qidentity)) | ||
| 1863 | Vtransient_mark_mode = Qnil; | ||
| 1864 | if (EQ (Vtransient_mark_mode, Qonly)) | ||
| 1865 | Vtransient_mark_mode = Qidentity; | ||
| 1866 | } | ||
| 1867 | |||
| 1868 | finalize: | 1866 | finalize: |
| 1869 | 1867 | ||
| 1870 | if (current_buffer == prev_buffer | 1868 | if (current_buffer == prev_buffer |