diff options
| author | Noah Friedman | 2016-08-21 14:03:46 -0700 |
|---|---|---|
| committer | Noah Friedman | 2016-08-21 14:04:37 -0700 |
| commit | 7a6b3d0fb793864a1f5deb5a22de78a4dced652d (patch) | |
| tree | 2da0a23eff517e5b5aa8417936500b0586d98131 /src/syntax.c | |
| parent | 14a86f837762af8d16eef57c315da93b56699901 (diff) | |
| download | emacs-7a6b3d0fb793864a1f5deb5a22de78a4dced652d.tar.gz emacs-7a6b3d0fb793864a1f5deb5a22de78a4dced652d.zip | |
Fix interpretation of signed vs unsigned values when retrieving X
Window properties, and make sure the full value is returned when not
parsed.
New subr to export type and format information about X Window
properties to lisp.
* src/xselect.c (selection_data_to_lisp_data): Treat any data as
unsigned unless its actual type is INTEGER.
CARDINALs, in particular, are unsigned.
* src/xfns.c (Fx_change_window_property): If value is a string, ignore
any provided format and force to 8.
(x_window_property_intern): If returning value as a string, the length
is actual_size times the actual format of each element, which is not
necessarily bytes.
(Fx_window_property_attributes): New subr.
(syms_of_xfns): Declare it.
Diffstat (limited to 'src/syntax.c')
0 files changed, 0 insertions, 0 deletions