Well its taken longer than I though but I have finally finished
rationalising select so that the windows behaviour is much more like the X
behaviour. I have generalised much of the code so that there is virtually
no duplication. All the selection converter stuff now works for mswindows.
Next the font-menu ....
I will apply this to cvs.
andy
1999-05-21 Andy Piper <andy(a)xemacs.org>
* xselect.c: deleted.
* symsinit.h: declare select initialisation.
* select.h: new file. declare commonly used select functions and
variables.
* select.c: new file. generalised from xselect.c.
(clean_local_selection_data): moved from xselect.c.
(get_local_selection): ditto. device specific pieces called via a
devmeth.
(handle_selection_clear): ditto.
(Fown_selection_internal): renamed and generalised from
Fx_own_selection_internal. moved from xselect.c.
(Fdisown_selection_internal): ditto.
(Fselection_owner_p): ditto.
(Fselection_exists_p): ditto.
(Fget_selection_internal): ditto.
(syms_of_select): new function. QXXXX values moved from xselect.c
(vars_of_select): new function. selection_converter_alist,
lost_selection_hooks moved and renamed from xselect.c
* select-x.c: renamed from xselect.c.
(x_own_selection): converted to device specific. non-X-specific
bits moved to select.c.
(x_get_foreign_selection): ditto.
(x_disown_selection): ditto.
(x_selection_exists_p): ditto.
(console_type_create_select_x): new function.
* select-msw.c (mswindows_own_selection): new device method to set
the clipboard when we 'own' the selection.
(mswindows_get_foreign_selection): new device method to get the
clipboard.
(mswindows_disown_selection): new device method to delete the
selection when we 'disown' it.
(console_type_create_select_mswindows): new function.
* emacs.c (main_1): add select to things to initialise.
* console.h (struct console_methods): new console methods for
selection.
* Makefile.in.in (x_objs): xselect.c renamed to select-x.c
1999-05-21 Andy Piper <andy(a)xemacs.org>
* x-select.el (x-select-convert-to-text):
(x-selected-text-type):
(x-get-selection):
(xselect-convert-to-string):
(xselect-convert-to-compound-text):
(xselect-convert-to-length):
(xselect-convert-to-targets):
(xselect-convert-to-delete):
(xselect-convert-to-filename):
(xselect-convert-to-charpos):
(xselect-convert-to-lineno):
(xselect-convert-to-colno):
(xselect-convert-to-sourceloc):
(xselect-convert-to-os):
(xselect-convert-to-host):
(xselect-convert-to-user):
(xselect-convert-to-class):
(xselect-convert-to-name):
(xselect-convert-to-integer):
(xselect-convert-to-atom):
(xselect-convert-to-identity): functions renamed from x-* and
moved to select.el.
(x-get-secondary-selection): use rename get-selection.
(x-get-clipboard): ditto.
(x-own-selection): moved to select.el.
(x-valid-simple-selection-p): ditto.
(x-dehilight-selection): ditto.
(x-own-clipboard): ditto.
(x-disown-selection): ditto.
* x-mouse.el (x-yank-function): moved to mouse.el.
(x-insert-selection): ditto.
(x-set-point-and-move-selection): use renamed function.
* select.el (selected-text-type): moved and renamed from
x-select.el.
(selection-owner-p): moved to C.
(selection-exists-p): ditto.
(get-cutbuffer): new device method.
(get-selection): generalised and moved from x-select.el.
(own-selection): moved x-own-selection functionality into here.
(dehilight-selection): renamed and moved from x-select.el.
(own-clipboard): functionality moved from x-select.el using new
generic C builtins.
(disown-clipboard): ditto.
(select-convert-to-text):
(select-convert-to-string):
(select-convert-to-compound-text):
(select-convert-to-length):
(select-convert-to-targets):
(select-convert-to-delete):
(select-convert-to-filename):
(select-convert-to-charpos):
(select-convert-to-lineno):
(select-convert-to-colno):
(select-convert-to-sourceloc):
(select-convert-to-os):
(select-convert-to-host):
(select-convert-to-user):
(select-convert-to-class):
(select-convert-to-name):
(select-convert-to-integer):
(select-convert-to-atom):
(select-convert-to-identity): new functions renamed from x-* and
moved from x-select.el.
* mouse.el (mouse-consolidated-yank): subsume x-yank-function
into here and use as the default window-system mouse yank.
(insert-selection): generalised and moved from x-mouse.el.
(own-clipboard): moved to C.
* msw-select.el (mswindows-selection-owned-p): deleted.
(mswindows-own-selection): generalised and moved to select.el.
(mswindows-disown-selection): generalised and moved to C.
(mswindows-selection-owner-p): ditto.
Show replies by date