I've created a central repository for patches that contain good features but
which can't currently be merged in, e.g. because they need fixup work. It's at
ftp://ftp.xemacs.org/patches
[also at
http://ftp.xemacs.org/patches]
It includes, for example, the patch below.
All of you who have such patches floating around, please send them to me and
I'll add them.
"Alastair J. Houghton" wrote:
> -----Original Message-----
> From: owner-xemacs-nt(a)xemacs.org [mailto:owner-xemacs-nt@xemacs.org]On
> Behalf Of Ben Wing
> Sent: 06 July 2000 05:57
> To: Alastair J. Houghton
> Cc: Andy Piper; xemacs-nt(a)xemacs.org
> Subject: Re: [PATCH] RTF Clipboard Support(!)
>
> in fact, i merged the windows stuff with the already-existing
> generic code.
I noticed. It looks quite cool ;-)
> what i'd like to see is something like this:
>
> 1. The current function
>
> (defun own-selection (data &optional type append)
>
> should become
>
> (defun own-selection (data &optional type how-to-add data-type)
>
> where data-type is the mswindows format, and how-to-add is
>
> 'replace-all or nil -- remove data for all formats
> 'replace-existing -- remove data for DATA-TYPE, but leave other
> formats alone
> 'append or t -- append data to existing data in DATA-TYPE, and leave other
> formats alone
>
> 2. the function
>
> (get-selection &optional TYPE DATA-TYPE)
>
> already has a data-type so you don't need to change it.
>
> 3. the existing function
>
> (selection-exists-p &optional SELECTION DEVICE)
>
> should become
>
> (selection-exists-p &optional SELECTION DEVICE DATA-TYPE)
>
> 4. a new function
>
> (register-selection-data-type DATA-TYPE)
>
> like your mswindows-register-clipboard-format.
>
> 5. there's already a selection-converter-alist, but that's only
> for data out.
> you should alias it to selection-conversion-out-alist, and create
> selection-conversion-in-alist. these alists contain entries for
> CF_TEXT, which
> handles CR/LF conversion, and rtf, which does rtf in/out
> conversion -- no need
> for separate functions to do this.
>
> this may seem daunting, but it's much less hard to add stuff like
> this than it
Actually it looks like quite good fun ;-)
> seems, and i and others will certainly give you lots of support
> if you run into
> problems. it would be way cool to have a more powerful clipboard
> mechanism in
> XEmacs.
Yeah. I agree. I will have a go as soon as I've got the
latest code.
Kind Regards,
Alastair.
____________________________________________________________
Alastair Houghton ajhoughton(a)lineone.net
--
Ben
In order to save my hands, I am cutting back on my mail. I also write
as succinctly as possible -- please don't be offended. If you send me
mail, you _will_ get a response, but please be patient, especially for
XEmacs-related mail. If you need an immediate response and it is not
apparent in your message, please say so. Thanks for your understanding.
See also
http://www.666.com/ben/chronic-pain/