aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorDmitry Antipov2014-07-18 15:04:37 +0400
committerDmitry Antipov2014-07-18 15:04:37 +0400
commit1a5db9eb9ebde75aa94e52c8eab8d07868759444 (patch)
tree9eb145f20f68fcb3d3afeaad737cd05ea5609c74 /src/ChangeLog
parent32a608307c53bd8bb1e29015bc36438f0ff0c572 (diff)
downloademacs-1a5db9eb9ebde75aa94e52c8eab8d07868759444.tar.gz
emacs-1a5db9eb9ebde75aa94e52c8eab8d07868759444.zip
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 'src/ChangeLog')
-rw-r--r--src/ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 01dc819480f..7d244db6b1d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -12,6 +12,21 @@
12 * xterm.h (x_display_pixel_width, x_display_pixel_height): ... 12 * xterm.h (x_display_pixel_width, x_display_pixel_height): ...
13 inlined from here. 13 inlined from here.
14 14
15 Prefer 'x_display_info *' to 'Display *' in X selection code.
16 This helps to avoid unneeded calls to x_display_info_for_display.
17 * xterm.h (struct selection_input_event): Record 'x_display_info *'
18 instead of 'Display *'.
19 (SELECTION_EVENT_DPYINFO): New macro.
20 (SELECTION_EVENT_DISPLAY): Now inline function to prohibit using
21 it as an lvalue. Mention this in comment.
22 * xterm.c (handle_one_xevent): Use SELECTION_EVENT_DPYINFO.
23 * xselect.c (x_get_window_property_as_lisp_data, x_atom_to_symbol)
24 (selection_data_to_lisp_data, receive_incremental_selection):
25 Convert to use 'x_display_info *'. Adjust users where appropriate.
26 (lisp_data_to_selection_data): Likewise. Also pass 'struct
27 selection data *' as last arg to not return values in args.
28 (unexpect_property_change): Use common removal technique.
29
152014-07-17 Dmitry Antipov <dmantipov@yandex.ru> 302014-07-17 Dmitry Antipov <dmantipov@yandex.ru>
16 31
17 * print.c (print_preprocess): Adjust to match changed 32 * print.c (print_preprocess): Adjust to match changed