Here's a patch that (I hope) should fix the problems people
have been having with the new selection code. Please could
anyone currently experiencing problems on X check whether
this fixes them? (Windows people please note: this fixes
some bugs on Windows as well).
It currently uses get_local_selection in a couple of places
where Ben thinks it shouldn't (and I agree), so I'll probably
change that some time soon, and I wouldn't start using
the new select-internal-int-bin/bin-int functions because
I suspect there'll be objections and they won't get added
to the main source tree. I'm not sure I like them myself
(and *I* wrote them)...
Regards,
Alastair.
lisp/ChangeLog:
2000-07-14 Alastair J. Houghton <ajhoughton(a)lineone.net>
New converter functions for X.
* select.el (select-convert-from-text): New.
* select.el (select-convert-from-length): New.
* select.el (select-convert-from-integer): New.
* select.el (select-convert-from-identity): New.
* select.el (selection-converter-in-alist): Use them.
src/ChangeLog:
2000-07-14 Alastair J. Houghton <ajhoughton(a)lineone.net>
* select.c (clean_local_selection_data): Removed. This was
a disgusting function, and previously should have been in
select-x.c in any case. The functionality is now provided
in select-convert-from-integer (select.el).
* select.h: Changed parameters for get_local_selection.
* select.c (get_local_selection): Bug fixes. New parameters.
* select.c (select-internal-int-bin): New.
* select.c (select-internal-bin-int): New.
New functions to read & write binary integer values into
strings.
* select.c (available-selection-types): Fixed stupidity where
INTEGER and ATOM got added twice.
* select.c (get-selection-internal): Removed symbol stripping. Use
new parameters for get_local_selection.
* select.c (syms_of_select): Added new functions.
* select-x.c (motif_clipboard_cb): Use get_local_selection - for now.
* select-x.c (x_handle_selection_request): Use new parameters for
get_local_selection.
* select-msw.c (mswindows_get_foreign_selection):
Use TO_INTERNAL_FORMAT rather than hacking.
--
____________________________________________________________
Alastair Houghton ajhoughton(a)lineone.net