[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] org-compat: Support for getting data from Windows clipbo

From: Alexander Vorobiev
Subject: Re: [O] [PATCH] org-compat: Support for getting data from Windows clipboard
Date: Mon, 18 Nov 2013 22:53:16 -0600

I too was thinking of making the change to org-get-x-clipboard-compat instead, but somehow decided not to. It calls x-get-selection and the latter, while it does have w32-specific flavor (in w32-common-fns.el), doesn't seem to support clipboard and its primary purpose is stated as "Fix interface to (X-specific) mouse.el."

As far as org-no-properties goes, I don't think it will make any difference on Windows because it looks like only plain text is supported (see e.g. http://www.mail-archive.com/address@hidden/msg03026.html and the code in http://git.savannah.gnu.org/cgit/emacs.git/tree/src/w32select.c) anyway. So it is hard to say where the patch clearly belongs (w32-common-fns.el (x-get-selection) perhaps?). I can move it to org-get-x-clipboard-compat of course but some change would still need to be done to org-get-x-clipboard because it checks for (eq window-system 'x) explicitly. Let me know what works better.


On Mon, Nov 18, 2013 at 5:34 AM, Fabrice Popineau <address@hidden> wrote:
Yes, you could lift the patch up to `org-get-x-clipboard-compat',
but this way, òrg-no-properties' would be applied to the w32 data too.
Is that relevant? I don't know if w32 clipboard data can have text properties.


2013/11/18 Bastien <address@hidden>
Hi Alexander,

Alexander Vorobiev <address@hidden> writes:

> Sorry for the mis-formatting. Here is the patch as an attachment.

Thanks -- digging into this again, maybe we need to fix
`org-get-x-clipboard-compat' directly?

I'm not using Windows so I can't test the patch.

Can a Windows user help here?


Fabrice Popineau
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950

reply via email to

[Prev in Thread] Current Thread [Next in Thread]