That patch seems to work much better. I can copy and paste both within
XEmacs and between it and other programs.
Mike Alexander <mailto:mtaï¼ arbortext.com>
Arbortext, Inc. +1-734-997-0200
--On Thursday, May 9, 2002 4:11 PM +0900 "Stephen J. Turnbull"
<stephen(a)xemacs.org> wrote:
>>>>> "Mike" == Mike Alexander
<mta(a)arbortext.com> writes:
Mike> I also don't understand why get-selection-internal returns
Mike> nil if and only if select-coerce doesn't change the
Mike> selection get-selection-internal found in the local cache.
If it changes, we can't ignore it; in principle select-coerce could do
things like apply `string-to-int' or even `read' to the selection text.
[...]
Mike> That makes get-selection and get-clipboard both return nil
Mike> which makes yank-clipboard-selection fail.
Sounds to me like get-clipboard is broken, then, in the sense that
what we need it to do here doesn't conform to the definition of
interprogram-paste-function.
Yup; this patch works for me on X11, and simply adding
(setq interprogram-paste-function 'get-clipboard)
to the init file reverts to old broken-on-X11 behavior in case this
doesn't quite do it for you somehow. Please let me know if you have
problems, but this is good enough for 21.4.8.