all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Simple copy & paste problem
Date: Thu, 12 Aug 2010 00:44:01 +0200	[thread overview]
Message-ID: <m1bp98ojm6.fsf@80-163.eduroam.rwth-aachen.de> (raw)
In-Reply-To: 87vd7g9ang.fsf@tux.homenetwork

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

>
> You can't do that if emacs and firefox are on differents desktops.
> But you can use mouse2 (don't know for OSX).
> 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)
> `----
>

That would be good but then I should use two different key bindings for
pasting, which is a bit annoying.
I also found this variable (by the way, how to you write with that nice
style?
This "cut here" is a bit too much...
--8<---------------cut here---------------start------------->8---
x-select-enable-clipboard is a variable defined in `C source code'.
It is void as a variable.

Documentation:
Non-nil means cutting and pasting uses the clipboard.
This is in addition to, but in preference to, the primary selection.
--8<---------------cut here---------------end--------------->8---

Would not be possible to avoid overwriting the clipboard entry with the
last entry killed?

Or is there a way to understand from emacs if something is copied on the
on the operating system clipboard?




  reply	other threads:[~2010-08-11 22:44 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 [this message]
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
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=m1bp98ojm6.fsf@80-163.eduroam.rwth-aachen.de \
    --to=andrea.crotti.0@gmail.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.