+2014-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * keyboard.c (read_char): Handle (t . <event>) in the second use of
+ Vunread_command_events (bug#17650).
+
2014-06-06 Dmitry Antipov <dmantipov@yandex.ru>
- * xterm.c (x_setup_pointer_blanking): Conditionally
- probe Xfixes until this stuff is stabilized (Bug#17609).
+ * xterm.c (x_setup_pointer_blanking):
+ Conditionally probe Xfixes until this stuff is stabilized (Bug#17609).
2014-06-05 Dmitry Antipov <dmantipov@yandex.ru>
* nsterm.h (ns_popup_dialog): Adjust prototype.
* nsterm.m (ns_create_terminal):
* w32term.c (w32_create_terminal):
- * xterm.c (x_create_terminal) [USE_X_TOOLKIT || USE_GTK]: Setup
- popup_dialog_hook.
+ * xterm.c (x_create_terminal) [USE_X_TOOLKIT || USE_GTK]:
+ Setup popup_dialog_hook.
2014-06-04 Eli Zaretskii <eliz@gnu.org>
* w32heap.c (report_temacs_memory_usage): Improve the report by
- reporting the large blocks that are actually occupied at dump
- time.
+ reporting the large blocks that are actually occupied at dump time.
* w32console.c (initialize_w32_display): Set the console
menu_show_hook, otherwise TTY menus are broken on w32.
2014-06-03 Eli Zaretskii <eliz@gnu.org>
* w32heap.c (DUMPED_HEAP_SIZE): Move from w32heap.h. Don't use
- HEAPSIZE; instead, define separate values for the 32- and 64-bit
- builds.
+ HEAPSIZE; instead, define separate values for the 32- and 64-bit builds.
(calloc): Don't undef, it is never defined.
(HEAP_ENTRY_SHIFT): Remove unused macro.
2014-06-03 Paul Eggert <eggert@cs.ucla.edu>
- * process.c (wait_reading_process_output): Omit incorrect test
- of p->infd against zero. Add easserts for infd having a plausible
- value.
+ * process.c (wait_reading_process_output): Omit incorrect test of
+ p->infd against zero. Add easserts for infd having a plausible value.
2014-06-02 Dmitry Antipov <dmantipov@yandex.ru>
Adjust to match recent lwlib changes.
- * menu.h (xmalloc_widget_value): Replaced by ...
+ * menu.h (xmalloc_widget_value): Replace by ...
(make_widget_value): ... new prototype.
- * menu.c (xmalloc_widget_value): Replaced by ...
+ * menu.c (xmalloc_widget_value): Replace by ...
(make_widget_value): ... new function.
(free_menubar_widget_value_tree, digest_single_submenu): Adjust users.
* gtkutil.c (malloc_widget_value, free_widget_value):
* w32heap.c (report_temacs_memory_usage): New function.
- * unexw32.c (unexec) [ENABLE_CHECKING]: Call
- report_temacs_memory_usage.
+ * unexw32.c (unexec) [ENABLE_CHECKING]:
+ Call report_temacs_memory_usage.
* w32heap.h (report_temacs_memory_usage): Add prototype.
* image.c (free_image): Undef free for Windows because it is
redirected to our private version.
- * unexw32.c (COPY_PROC_CHUNK): Use %p format for 64bits
- compatibility.
+ * unexw32.c (COPY_PROC_CHUNK): Use %p format for 64bits compatibility.
(copy_executable_and_dump_data): Remove dumping the heap section.
(unexec): Restore using_dynamic_heap after dumping.
2014-05-26 Eli Zaretskii <eliz@gnu.org>
- * w32.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Define only if
- undefined.
+ * w32.c (_ANONYMOUS_UNION, _ANONYMOUS_STRUCT): Define only if undefined.
2014-05-26 Ken Brown <kbrown@cornell.edu>
was moved to Fgarbage_collect.
(Fgarbage_collect): Calculate the end address of the stack portion
that needs to be examined by mark_stack, and pass that address to
- garbage_collect_1, which will pass it to mark_stack. See
+ garbage_collect_1, which will pass it to mark_stack. See
http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00270.html
for more details about the underlying problems. In particular,
this avoids dumping Emacs with the large hash-table whose value is
retry:
- reread = 0;
if (CONSP (Vunread_post_input_method_events))
{
c = XCAR (Vunread_post_input_method_events);
&& NILP (XCDR (c)))
c = XCAR (c);
- reread = 1;
+ reread = true;
goto reread_first;
}
+ else
+ reread = false;
+
if (CONSP (Vunread_command_events))
{
c = XCAR (Vunread_command_events);
Vunread_command_events = XCDR (Vunread_command_events);
- reread = 1;
-
/* Undo what sit-for did when it unread additional keys
inside universal-argument. */
- if (CONSP (c)
- && EQ (XCAR (c), Qt))
- {
- reread = 0;
+ if (CONSP (c) && EQ (XCAR (c), Qt))
c = XCDR (c);
- }
+ else
+ reread = true;
/* Undo what read_char_x_menu_prompt did when it unread
additional keys returned by Fx_popup_menu. */
&& (SYMBOLP (XCAR (c)) || INTEGERP (XCAR (c)))
&& NILP (XCDR (c)))
c = XCAR (c);
- reread = 1;
+ reread = true;
goto reread_for_input_method;
}
{
c = XCAR (Vunread_command_events);
Vunread_command_events = XCDR (Vunread_command_events);
+
+ if (CONSP (c) && EQ (XCAR (c), Qt))
+ c = XCDR (c);
+ else
+ reread = true;
}
/* Read something from current KBOARD's side queue, if possible. */
{
c = read_decoded_event_from_main_queue (end_time, local_getcjmp,
prev_event, used_mouse_menu);
- if (NILP(c) && end_time &&
- timespec_cmp (*end_time, current_timespec ()) <= 0)
+ if (NILP (c) && end_time
+ && timespec_cmp (*end_time, current_timespec ()) <= 0)
{
goto exit;
}