unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1765: Copy/paste inconsistent with other X apps
@ 2009-01-04  3:33 Chong Yidong
  2009-01-04  8:09 ` Sven Joachim
       [not found] ` <mailman.3895.1231057410.26697.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 12+ messages in thread
From: Chong Yidong @ 2009-01-04  3:33 UTC (permalink / raw)
  To: Ole Laursen; +Cc: 1765

> In every other recent X app I have tried, copy/pasting works the way
> that the mouse selection = copy and middle click = paste is seperate
> from the C-c/C-v clipboard.  I think it makes sense to change the
> Emacs behaviour to make it a good citizen in the free desktop. And
> it's arguably also more likely to prevent loss of clips.

Set x-select-enable-clipboard to t.

(We might consider making this the default after the release.  ISTR
there was a technical reason not to do this, but details elude me right
now.  Maybe it's a matter of speed?)






^ permalink raw reply	[flat|nested] 12+ messages in thread
* bug#1765: Copy/paste inconsistent with other X apps
@ 2009-08-07 19:31 Ole Laursen
  0 siblings, 0 replies; 12+ messages in thread
From: Ole Laursen @ 2009-08-07 19:31 UTC (permalink / raw)
  To: 1765

I just got Emacs 23 on my Debian system - nice work!

However, it seems the algorithm has changed? Or maybe I just didn't
test it correctly last time. With x-select-enable-clipboard at t, you
can do the following sequence:

1. Select "foo" in Firefox, copy it with C-c.
2. Select "bar" in Firefox with the mouse.
3. Switch to Emacs and hit C-y and get "foo" as mandated by the spec (great!).

However, if you switch back to Firefox and select "apples", then
switch to Emacs and hit C-y, you now get "apples" instead of "foo"? I
tried setting x-select-enable-primary to nil, but then middle-mouse is
broken and selecting something in Emacs with the mouse doesn't put it
in primary.

I did try the suggestion in the updated docstring for
select-active-regions, but it didn't quite work, maybe because
select-active-regions was broken before the patch.

The automagic going on in the relevant function confuses me, but maybe
that's because it's written with the old behaviour in mind (no
difference between primary/clipboard) with these options being bolted
on afterwards. It appears to me that it's lacking a
dont-use-selection-when-yanking-and-kill-ring-when-inserting setting,
then the two x-select-enable-* could be left at true.

-- 
Ole Laursen
http://people.iola.dk/olau/





^ permalink raw reply	[flat|nested] 12+ messages in thread
* bug#1765: Copy/paste inconsistent with other X apps
@ 2009-01-25 23:58 David De La Harpe Golden
  0 siblings, 0 replies; 12+ messages in thread
From: David De La Harpe Golden @ 2009-01-25 23:58 UTC (permalink / raw)
  To: 1765

Please note bug #902, which patches emacs towards
X11 fd.o cut+paste compliance, provided you follow
the instructions associated with the expanded
select-active-regions docstring in the patch.

http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=902






^ permalink raw reply	[flat|nested] 12+ messages in thread
* bug#1765: Copy/paste inconsistent with other X apps
@ 2009-01-02 15:41 Ole Laursen
  2009-01-04 21:41 ` Richard M Stallman
  0 siblings, 1 reply; 12+ messages in thread
From: Ole Laursen @ 2009-01-02 15:41 UTC (permalink / raw)
  To: bug-gnu-emacs; +Cc: olau

Hi!

In every other recent X app I have tried, copy/pasting works the way
that the mouse selection = copy and middle click = paste is seperate
from the C-c/C-v clipboard. This fits in with the description here:

  http://www.freedesktop.org/wiki/Specifications/ClipboardsWiki
  http://www.jwz.org/doc/x-cut-and-paste.html

However, my Emacs 22.2.1 (started with emacs -Q) is confusing the two.
If I kill-ring-save "foo", select "bar" with the mouse and yank I get
"bar" instead of "foo". With the above spec, I should have gotten
"bar" only if I pressed M-w before yanking.

This is mostly annoying when pasting from another program, e.g. using
C-c to copy "foo" in the browser, then yanking the text in Emacs. If
you accidentally click the wrong place, the effort in selecting "foo"
is lost.

I think it makes sense to change the Emacs behaviour to make it a good
citizen in the free desktop. And it's arguably also more likely to
prevent loss of clips.

-- 
Ole Laursen
http://people.iola.dk/olau/







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

end of thread, other threads:[~2009-08-07 19:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-04  3:33 bug#1765: Copy/paste inconsistent with other X apps Chong Yidong
2009-01-04  8:09 ` Sven Joachim
2009-01-04 16:29   ` Ole Laursen
2009-01-05  2:29     ` Stefan Monnier
2009-01-05 12:59       ` Ole Laursen
     [not found] ` <mailman.3895.1231057410.26697.bug-gnu-emacs@gnu.org>
2009-01-05 12:15   ` Thomas E. Dickey
  -- strict thread matches above, loose matches on Subject: below --
2009-08-07 19:31 Ole Laursen
2009-01-25 23:58 David De La Harpe Golden
2009-01-02 15:41 Ole Laursen
2009-01-04 21:41 ` Richard M Stallman
2009-01-05 12:52   ` Ole Laursen
2009-01-05 13:00     ` Ole Laursen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).