all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: pasting primary X selection into Emacs
  2006-05-03 16:00 pasting primary X selection into Emacs mandar.mitra
@ 2006-05-03 15:43 ` Nikos E Apostolakis
  2006-05-03 16:44 ` Michaël Cadilhac
       [not found] ` <mailman.1328.1146689439.9609.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 5+ messages in thread
From: Nikos E Apostolakis @ 2006-05-03 15:43 UTC (permalink / raw)


mandar.mitra@gmail.com writes:
>
> Is there some way to yank whichever is more recent: the last killed
> text or the primary selection?
>

"M-x set-variable RET x-select-enable-clipboard RET t"

> ps 1: I've looked at some of the discussion on cutting and pasting
> between Emacs and X11 apps, but
> haven't found the answer to this particular question.

Try the documentation:
(info "(emacs)  Clipboard")

> Thanks for any pointers,
> Mandar.

-- 
Nikos

^ permalink raw reply	[flat|nested] 5+ messages in thread

* pasting primary X selection into Emacs
@ 2006-05-03 16:00 mandar.mitra
  2006-05-03 15:43 ` Nikos E Apostolakis
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: mandar.mitra @ 2006-05-03 16:00 UTC (permalink / raw)


I would like to use C-y or <middle button> to yank the primary X
selection in Emacs.

C-y and middle button both work as expected after a kill (since the
kill updates the primary selection), but if I use the mouse to create a
new primary selection after that, and then do a C-y, I still get the
last killed text, instead of the new primary selection.

Is there some way to yank whichever is more recent: the last killed
text or the primary selection?

Thanks for any pointers,
Mandar.

ps 1: I've looked at some of the discussion on cutting and pasting
between Emacs and X11 apps, but
haven't found the answer to this particular question.

ps 2: I had posted this on comp.emacs, but got no suggestions, so I'm
trying here. I should have crossposted at the outset. Sorry.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pasting primary X selection into Emacs
  2006-05-03 16:00 pasting primary X selection into Emacs mandar.mitra
  2006-05-03 15:43 ` Nikos E Apostolakis
@ 2006-05-03 16:44 ` Michaël Cadilhac
       [not found] ` <mailman.1328.1146689439.9609.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 5+ messages in thread
From: Michaël Cadilhac @ 2006-05-03 16:44 UTC (permalink / raw)
  Cc: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 1003 bytes --]

mandar.mitra@gmail.com writes:

> I would like to use C-y or <middle button> to yank the primary X
> selection in Emacs.
>
> C-y and middle button both work as expected after a kill (since the
> kill updates the primary selection), but if I use the mouse to create a
> new primary selection after that, and then do a C-y, I still get the
> last killed text, instead of the new primary selection.
>
> Is there some way to yank whichever is more recent: the last killed
> text or the primary selection?

  It works for me (Emacs 22) and AFAIR, it has always worked.

  However, if you use emacs -nw, I don't think the problem is « emacs
  solvable ».

  Regards.

-- 
 |      Michaël `Micha' Cadilhac   |   Pour les 35-40 ans, l'humour         |
 |         Epita/LRDE Promo 2007   |        c'est une plus-value.           |
 | http://www.lrde.org/~cadilh_m   |           -- Guillaume L.              |
 `--  -   JID: micha@amessage.be --'                                   -  --'

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pasting primary X selection into Emacs
  2006-05-04  7:51   ` mandar.mitra
@ 2006-05-04  4:38     ` Nikos E Apostolakis
  0 siblings, 0 replies; 5+ messages in thread
From: Nikos E Apostolakis @ 2006-05-04  4:38 UTC (permalink / raw)


mandar.mitra@gmail.com writes:

> The documentation on how to do this via the clipboard is easily
> locatable and clear, but I don't want to use the clipboard for
> copy-pastes. I want to use only the *primary selection*.
>                   

If this is what you wanted to say, then your previous post, namely

> Is there some way to yank whichever is more recent: the last killed
> text or the primary selection?

didn't express it very clearly.  

> AFAIR, I didn't get the behaviour I wanted with
> x-select-enable-clipboard to t.

You don't need to recall, you can set it to t and see what happens.
Though I am not sure what behaviour you want.

-- 
Nikos

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pasting primary X selection into Emacs
       [not found] ` <mailman.1328.1146689439.9609.help-gnu-emacs@gnu.org>
@ 2006-05-04  7:51   ` mandar.mitra
  2006-05-04  4:38     ` Nikos E Apostolakis
  0 siblings, 1 reply; 5+ messages in thread
From: mandar.mitra @ 2006-05-04  7:51 UTC (permalink / raw)


The documentation on how to do this via the clipboard is easily
locatable and clear, but I don't want to use the clipboard for
copy-pastes. I want to use only the *primary selection*.

Anyway, things seem to be working now. The funny thing is that I'm sure
that I verified the behaviour before I posted. FWIW, I have
x-select-enable-clipboard explicitly set to nil in my .emacs. AFAIR, I
didn't get the behaviour I wanted with x-select-enable-clipboard to t.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-04  7:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-03 16:00 pasting primary X selection into Emacs mandar.mitra
2006-05-03 15:43 ` Nikos E Apostolakis
2006-05-03 16:44 ` Michaël Cadilhac
     [not found] ` <mailman.1328.1146689439.9609.help-gnu-emacs@gnu.org>
2006-05-04  7:51   ` mandar.mitra
2006-05-04  4:38     ` Nikos E Apostolakis

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.