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/help-emacs-windows@gnu.org/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.

Thanks
Alex



On Mon, Nov 18, 2013 at 5:34 AM, Fabrice Popineau <fabrice.popineau@supelec.fr> 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.

Fabrice


2013/11/18 Bastien <bzg@gnu.org>
Hi Alexander,

Alexander Vorobiev <alexander.vorobiev@gmail.com> 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?

--
 Bastien




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