diff options
author | Ken Raeburn <raeburn@raeburn.org> | 2015-10-07 06:04:01 -0400 |
---|---|---|
committer | Ken Raeburn <raeburn@raeburn.org> | 2015-10-11 01:15:08 -0400 |
commit | 5504ede9518053e619b2cc4bb01ce6eff254d3c8 (patch) | |
tree | 86e3fb272f4f27d8847291256c71bd5e30e06bfc /lisp/emacs-lisp/lisp-mode.el | |
parent | 54e3734a322aca9d396e4c7b0e73f08ac6c12501 (diff) | |
download | emacs-5504ede9518053e619b2cc4bb01ce6eff254d3c8.tar.gz emacs-5504ede9518053e619b2cc4bb01ce6eff254d3c8.tar.bz2 emacs-5504ede9518053e619b2cc4bb01ce6eff254d3c8.zip |
Introduce x_uncatch_errors_after_check to reduce XSync calls.
Both x_had_errors_p and x_check_errors call XSync, so if they're
immediately followed by x_uncatch_errors, its XSync call will be
redundant, resulting in a wasted round trip to the X server.
* src/xterm.c (x_uncatch_errors_after_check): New routine; a copy of
x_uncatch_errors without the XSync call.
(XTmouse_position, x_wm_supports):
* src/xfns.c (x_set_mouse_color):
* src/xmenu.c (Fx_menu_bar_open_internal):
* src/xselect.c (x_own_selection, x_get_foreign_selection):
(Fx_get_atom_name): Call it instead of x_uncatch_errors.
* src/xterm.h (x_uncatch_errors_after_check): Declare.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
0 files changed, 0 insertions, 0 deletions