aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/keyboard.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 99f8d8d4886..eeff6cba68c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12001-02-20 Gerd Moellmann <gerd@gnu.org> 12001-02-20 Gerd Moellmann <gerd@gnu.org>
2 2
3 * keyboard.c (read_char): When an event from unread-command-events
4 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5
3 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not 6 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
4 equal to the current buffer. 7 equal to the current buffer.
5 8
diff --git a/src/keyboard.c b/src/keyboard.c
index cc2b41c4b9d..6401389ca5a 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2141,6 +2141,12 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
2141 && NILP (XCDR (c))) 2141 && NILP (XCDR (c)))
2142 c = XCAR (c); 2142 c = XCAR (c);
2143 2143
2144 /* If the queued event is something that used the mouse,
2145 set used_mouse_menu accordingly. */
2146 if (used_mouse_menu
2147 && (EQ (c, Qtool_bar) || EQ (c, Qmenu_bar)))
2148 *used_mouse_menu = 1;
2149
2144 reread = 1; 2150 reread = 1;
2145 goto reread_for_input_method; 2151 goto reread_for_input_method;
2146 } 2152 }