all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: LEE Sau Dan <danlee@informatik.uni-freiburg.de>
Subject: Re: emacs doesn't use the X clipboard
Date: 12 Jan 2004 18:59:26 +0100	[thread overview]
Message-ID: <m3wu7xgi9t.fsf@mika.informatik.uni-freiburg.de> (raw)
In-Reply-To: mailman.387.1073803639.928.help-gnu-emacs@gnu.org

>>>>> "Eli" == Eli Zaretskii <eliz@elta.co.il> writes:

    Eli> Emacs pastes from X only if you didn't issue any command that
    Eli> kills text since the last X selection was made.  In other
    Eli> words, if you select text in another application, then
    Eli> immediately paste inside Emacs, you should get the text you
    Eli> selected in that other application.

Not always.   I've been experiencing  this annoying for some  time.  I
think the OP  has got the same problem that  I encounter.  Select text
in xterm,  and C-y  in Emacs (or  middle-click) while seeing  the text
still highlighted in xterm.  Emacs  pastes from the king-ring, not the
selection.  With the text  still highlighted in xterm, middle-click on
other apps and they all get the highlighted text from the xterm.

Worse yet,  this behaviour  is quite random  (to me).   Sometimes, C-y
does  paste   from  a  selection  (form   whatever  other  X-clients).
Sometimes, it  just pastes  from the kill-ring,  as if there  were not
selections  at all.  I  still haven't  figured out  the rules  of when
Emacs behaves one way and when the other.  So, to me it's "random".



    Eli> This is so because each text you kill in Emacs is
    Eli> automatically put into the X selection, so if you do that
    Eli> before pasting from X, the text you kill in Emacs overshadows
    Eli> the previous X selection in another application.

I  do understand  how  the  X selection  mechanism  works.  I've  even
programmed it in  C/Xlib.  That does not stop  Emacs from misbehaving,
though.



-- 
Lee Sau Dan                     李守敦(Big5)                    ~{@nJX6X~}(HZ) 

E-mail: danlee@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee

  parent reply	other threads:[~2004-01-12 17:59 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-11  0:26 emacs doesn't use the X clipboard Micha Feigin
2004-01-11  5:46 ` Eli Zaretskii
     [not found] ` <mailman.387.1073803639.928.help-gnu-emacs@gnu.org>
2004-01-12 17:59   ` LEE Sau Dan [this message]
2004-01-13  0:18     ` Carsten Weinberg
     [not found]     ` <mailman.495.1073964322.928.help-gnu-emacs@gnu.org>
2004-01-13  5:00       ` Ian Zimmerman
2004-01-13 12:06         ` LEE Sau Dan
2004-01-13 18:35           ` Carsten Weinberg
2004-01-14  6:37           ` Eli Zaretskii
2004-01-14  7:59             ` Micha Feigin
2004-01-14 13:33               ` Eli Zaretskii
2004-01-14  7:16           ` Micha Feigin
     [not found]           ` <mailman.606.1074062176.928.help-gnu-emacs@gnu.org>
2004-01-14 21:40             ` LEE Sau Dan
2004-01-17 18:41               ` Eli Zaretskii
     [not found]           ` <mailman.665.1074118187.928.help-gnu-emacs@gnu.org>
2004-01-15 12:49             ` Kester Clegg
2004-01-22 21:29               ` Jeff
2004-01-13 11:23       ` Jens Schmidt
2004-01-13 12:22         ` LEE Sau Dan
2004-01-15 12:51           ` Kester Clegg
2004-01-15 21:44             ` LEE Sau Dan
2004-01-18 23:54               ` Ian Zimmerman
2004-01-15 16:26           ` Jens Schmidt
2004-01-13 14:38         ` Tim McNamara
2004-01-13 22:19           ` LEE Sau Dan
2004-01-13  6:48     ` Eli Zaretskii
     [not found]     ` <mailman.510.1073976607.928.help-gnu-emacs@gnu.org>
2004-01-13 12:28       ` LEE Sau Dan
2004-01-13 15:50         ` Maurizio Loreti
2004-01-13 18:13           ` Gian Uberto Lauri
2004-01-13 22:14           ` LEE Sau Dan
     [not found]           ` <mailman.545.1074017499.928.help-gnu-emacs@gnu.org>
2004-01-15 12:54             ` Kester Clegg
2004-01-15 21:56               ` LEE Sau Dan
2004-01-13 17:19         ` Eli Zaretskii
     [not found]         ` <mailman.542.1074014317.928.help-gnu-emacs@gnu.org>
2004-01-14 21:34           ` LEE Sau Dan
     [not found] <mailman.381.1073784888.928.help-gnu-emacs@gnu.org>
2004-01-11 13:02 ` Henrik Enberg

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=m3wu7xgi9t.fsf@mika.informatik.uni-freiburg.de \
    --to=danlee@informatik.uni-freiburg.de \
    /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.