diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2014-07-18 15:04:37 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2014-07-18 15:04:37 +0400 |
commit | 1a5db9eb9ebde75aa94e52c8eab8d07868759444 (patch) | |
tree | 9eb145f20f68fcb3d3afeaad737cd05ea5609c74 /lisp/emacs-lisp/cl-macs.el | |
parent | 32a608307c53bd8bb1e29015bc36438f0ff0c572 (diff) | |
download | emacs-1a5db9eb9ebde75aa94e52c8eab8d07868759444.tar.gz |
Prefer 'x_display_info *' to 'Display *' in X selection code.
This helps to avoid unneeded calls to x_display_info_for_display.
* xterm.h (struct selection_input_event): Record 'x_display_info *'
instead of 'Display *'.
(SELECTION_EVENT_DPYINFO): New macro.
(SELECTION_EVENT_DISPLAY): Now inline function to prohibit using
it as an lvalue. Mention this in comment.
* xterm.c (handle_one_xevent): Use SELECTION_EVENT_DPYINFO.
* xselect.c (x_get_window_property_as_lisp_data, x_atom_to_symbol)
(selection_data_to_lisp_data, receive_incremental_selection):
Convert to use 'x_display_info *'. Adjust users where appropriate.
(lisp_data_to_selection_data): Likewise. Also pass 'struct
selection data *' as last arg to not return values in args.
(unexpect_property_change): Use common removal technique.
Diffstat (limited to 'lisp/emacs-lisp/cl-macs.el')
0 files changed, 0 insertions, 0 deletions