help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Yank from system clipboard?


From: Marc Mientki
Subject: Re: Yank from system clipboard?
Date: Wed, 08 Dec 2010 15:23:11 -0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6

Am 05.08.2010 13:36, schrieb Elena:
Thanks for answering.

I've not understood the docs about `(current-kill 0)', however I've
tried:

(current-kill 0)
(clipboard-yank)

and Emacs still yanks the last kill.

What I'm missing?

I have probably not understand the task. What you want to do? Mark something outside of Emacs, copy (CTRL-C) and yank (paste) it in
Emacs buffer? But what means "non-interactively yank".

The (current-kill 0) puts content of system clipboard into Emacs
kill-ring and (clipboard-yank) puts this into buffer, or you can
access to this text via kill-ring variable with (car kill-ring).
Or (substring-no-properties (car kill-ring)) or directly
(substring-no-properties (current-kill 0)) - in case you don't want
text properties.

regards
Marc




reply via email to

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