aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/keyboard.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a8ef551d885..ee022b78ddd 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-10-03 Chong Yidong <cyd@stupidchicken.com>
2
3 * keyboard.c (command_loop_1): Make sure the mark is really alive
4 before using it (Bug#7044).
5
12010-10-02 Juanma Barranquero <lekktu@gmail.com> 62010-10-02 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * makefile.w32-in (tags): Rename target to full-tags. 8 * makefile.w32-in (tags): Rename target to full-tags.
diff --git a/src/keyboard.c b/src/keyboard.c
index 1be6c2aad9d..890ab80aee6 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1786,7 +1786,8 @@ command_loop_1 (void)
1786 this_single_command_key_start = 0; 1786 this_single_command_key_start = 0;
1787 } 1787 }
1788 1788
1789 if (!NILP (current_buffer->mark_active) && !NILP (Vrun_hooks)) 1789 if (!NILP (current_buffer->mark_active)
1790 && !NILP (Vrun_hooks))
1790 { 1791 {
1791 /* In Emacs 22, setting transient-mark-mode to `only' was a 1792 /* In Emacs 22, setting transient-mark-mode to `only' was a
1792 way of turning it on for just one command. This usage is 1793 way of turning it on for just one command. This usage is
@@ -1805,6 +1806,9 @@ command_loop_1 (void)
1805 /* Even if not deactivating the mark, set PRIMARY if 1806 /* Even if not deactivating the mark, set PRIMARY if
1806 `select-active-regions' is non-nil. */ 1807 `select-active-regions' is non-nil. */
1807 if (!NILP (Fwindow_system (Qnil)) 1808 if (!NILP (Fwindow_system (Qnil))
1809 /* Even if mark_active is non-nil, the actual buffer
1810 marker may not have been set yet (Bug#7044). */
1811 && XMARKER (current_buffer->mark)->buffer
1808 && (EQ (Vselect_active_regions, Qonly) 1812 && (EQ (Vselect_active_regions, Qonly)
1809 ? EQ (CAR_SAFE (Vtransient_mark_mode), Qonly) 1813 ? EQ (CAR_SAFE (Vtransient_mark_mode), Qonly)
1810 : (!NILP (Vselect_active_regions) 1814 : (!NILP (Vselect_active_regions)