]> git.eshelyaron.com Git - emacs.git/commit
More behind the scenes transparent speedups around xselect.c
authorPo Lu <luangruo@yahoo.com>
Fri, 2 Dec 2022 13:00:30 +0000 (21:00 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 2 Dec 2022 13:03:07 +0000 (21:03 +0800)
commit64044f545add60e045ff16a9891b06f429ac935f
tree261097130d732903182c6ea2a2c0e37a34e1f54b
parenta67ed9a403f7b674ef4252f582d41e0ab6f7b7bd
More behind the scenes transparent speedups around xselect.c

* src/xdisp.c (display_menu_bar): Fix compiler warning about
NULL pointer dereference.
* src/xfns.c (Fx_begin_drag): Use x_intern_atoms.
(Fx_change_window_property): Pass dpyinfo to
x_fill_property_data.
* src/xselect.c (lisp_data_to_selection_data): Use
x_intern_atoms instead of syncing for each atom.
(x_fill_property_data, x_send_client_event): Use
x_intern_cached_atom.
* src/xterm.c (x_intern_atoms): New function.
* src/xterm.h: Update prototypes.
src/xdisp.c
src/xfns.c
src/xselect.c
src/xterm.c
src/xterm.h