all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* The X window system, yanking, and pasting using the mouse
@ 2011-01-27  2:31 Manoj Srivastava
  2011-01-27  2:39 ` Miles Bader
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Manoj Srivastava @ 2011-01-27  2:31 UTC (permalink / raw)
  To: emacs-devel

Hi,

        I have read the archives of this mailing list, and the release
 notes of the latest release candidate, and I am left somewhat
 confused. I am using the latest Emacs from Git. 

This is what I have:
--8<---------------cut here---------------start------------->8---
(setq
  transient-mark-mode   t                  ;show the marked region
  ;;; Behave like other X applications. This is confusing.
  x-select-enable-primary   t
  x-select-enable-clipboard t   ;;; cut/paste use clipboard
  select-active-regions 'only   ;;; temporarily active regions set the
                                ;;; window selection.
  mouse-drag-copy-region t      ;;; copy dragged region to kill ring
 )
--8<---------------cut here---------------end--------------->8---

 What I want is the  behaviour I think I used to have in Emacs on
 GNU/Linux X Windows:
  1) Whatever text is pasted when I click <down-mouse-2>
     (mouse-yank-primary?) should be the same thing yanked when I type
     C-y (yank)
  2) Conversely, text that is selected in Emacs, such that it is
     inserted with a C-y (yank) should also be the text that is pasted
     into, say, an xterm when I do a middle mouse click in there.

        I often find that text selected in other X applications (which
 is inserted in xterms and Emacs  using the middle mouse button, is not
 what is yanked using the keyboard. I cannot seem to reproduce this
 reliably, but I have observed this often.

        In Emacs, I select text by:
 1) C-SPC (set-mark-command)  C-f C-f M-w (kill-ring-save)
 2) Down-mouse-1 drag-mouse-1 up-mouse-one (mouse-drag-region)
 3) Down-mouse-1 Down-mouse-3 (mouse-save-then-kill

        I would like each of these methods to copy things over so that a
 middle mouse click in an xterm to paste the text in the region.

        What changes do I need to make to get this?

        manoj
-- 
New systems generate new problems.
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>  
4096R/C5779A1C E37E 5EC5 2A01 DA25 AD20  05B6 CF48 9438 C577 9A1C




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

end of thread, other threads:[~2011-01-29 19:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-27  2:31 The X window system, yanking, and pasting using the mouse Manoj Srivastava
2011-01-27  2:39 ` Miles Bader
2011-01-27  3:33   ` Manoj Srivastava
2011-01-27  7:49     ` Stefan Reichör
2011-01-27  6:56 ` Eli Zaretskii
2011-01-27 10:36   ` Manoj Srivastava
2011-01-27 21:41     ` Chong Yidong
2011-01-27 21:35 ` David De La Harpe Golden
2011-01-28  8:42   ` Manoj Srivastava
2011-01-28 18:22   ` Drew Adams
2011-01-28 19:59     ` Stefan Monnier
2011-01-29 19:06       ` David De La Harpe Golden

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.