From: dkcombs@panix.com (David Combs)
To: help-gnu-emacs@gnu.org
Subject: Re: Simple copy & paste problem
Date: Sun, 5 Sep 2010 01:59:04 +0000 (UTC) [thread overview]
Message-ID: <i5uth8$ois$3@reader1.panix.com> (raw)
In-Reply-To: mailman.4.1281557372.27891.help-gnu-emacs@gnu.org
In article <mailman.4.1281557372.27891.help-gnu-emacs@gnu.org>,
Thierry Volpiatto <thierry.volpiatto@gmail.com> wrote:
>Joel James Adamson <adamsonj@email.unc.edu> writes:
...
...
>
>You can't do that if emacs and firefox are on differents desktops.
>But you can use mouse2 (don't know for OSX).
mouse2 -- what does that do?
>You can use that also:
>
>,----
>| (defun yank-from-clipboard ()
>| (interactive)
>| (let ((primary (x-selection 'PRIMARY)))
>| (when primary (insert primary))))
>| (global-set-key (kbd "C-c v") 'yank-from-clipboard)
>`----
>
>Like that nothing is added to emacs kill-ring.
>
>If you don't mind adding to emacs kill-ring:
>
>,----
>| ;; (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
>| ;; (setq x-select-enable-primary t)
>`----
x-cut-buffer-or-selection-value is an alias for `x-get-selection-value' in `w32-fns.el'.
(x-cut-buffer-or-selection-value)
Return the value of the current selection.
Consult the selection, then the cut buffer. Treat empty strings as if
they were unset.
What does that mean? If there's a selection, use it,
else what's in the cut-buffer? (cut-buffer -- what's that?)>
And that x-cut-buffer-or-selection-value -- not in 23.0.0.1. ???
>--
>Thierry Volpiatto
>Get my Gnupg key:
>gpg --keyserver pgp.mit.edu --recv-keys 59F29997
>
>
Thanks!
David
next prev parent reply other threads:[~2010-09-05 1:59 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 16:51 Simple copy & paste problem Andrea Crotti
2010-08-11 17:51 ` Drew Adams
2010-08-11 18:10 ` Andrea Crotti
2010-08-11 19:05 ` Glauber Alex Dias Prado
2010-08-11 19:15 ` Joel James Adamson
2010-08-11 20:06 ` Thierry Volpiatto
2010-08-11 22:44 ` Andrea Crotti
2010-08-12 17:25 ` Joel James Adamson
2010-08-12 18:14 ` Thierry Volpiatto
[not found] ` <mailman.4.1281557372.27891.help-gnu-emacs@gnu.org>
2010-09-05 1:59 ` David Combs [this message]
2010-08-12 5:42 ` Jonathan Groll
2010-08-13 2:35 ` Kevin Rodgers
2010-08-25 13:47 ` Leo
[not found] ` <mailman.0.1281553020.25709.help-gnu-emacs@gnu.org>
2010-09-05 1:48 ` David Combs
2010-09-29 21:20 ` David Combs
[not found] ` <mailman.4.1282744218.27059.help-gnu-emacs@gnu.org>
2010-09-05 2:02 ` David Combs
[not found] <mailman.4.1281546350.9082.help-gnu-emacs@gnu.org>
2010-08-11 17:43 ` Pascal J. Bourguignon
2010-09-05 1:44 ` David Combs
2010-09-05 1:55 ` Pascal J. Bourguignon
2010-08-11 18:11 ` notbob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='i5uth8$ois$3@reader1.panix.com' \
--to=dkcombs@panix.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.