all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ole Laursen" <olau@hardworking.dk>
To: bug-gnu-emacs@gnu.org
Subject: bug#1765: Copy/paste inconsistent with other X apps
Date: Mon, 5 Jan 2009 13:52:17 +0100	[thread overview]
Message-ID: <ac6fcf750901050452w2d696f5ar288545657e103d5e@mail.gmail.com> (raw)
In-Reply-To: <E1LJajN-0007EB-0G@fencepost.gnu.org>

2009/1/4 Richard M Stallman <rms@gnu.org>:
>    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 a very useful feature.  It means, for instance, that you can use
> C-y in Emacs to insert text that was selected in other apps.

But the thing is that this goes against the defacto standard - and it
is there for good reasons. Standard paste/yank always only inserts
text that was explicitly copied to the clipboard. If you read this
short document

  http://www.freedesktop.org/wiki/Specifications/ClipboardsWiki

it's very clear on this.

The problem with not following the spec is that text selections are
used for a lot of stuff. If I patiently select a piece of text with
the mouse and press C-c, I expect to be able use that piece of text
later - even if I have selected another piece of text, or just clicked
an input field with automatic text selection.

Imagine having the kill ring filled up with random stuff every time
you press C-space and move the cursor. That's what Emacs is currently
doing with clips from other programs.

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







  reply	other threads:[~2009-01-05 12:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-02 15:41 bug#1765: Copy/paste inconsistent with other X apps Ole Laursen
2009-01-04 21:41 ` Richard M Stallman
2009-01-05 12:52   ` Ole Laursen [this message]
2009-01-05 13:00     ` Ole Laursen
  -- strict thread matches above, loose matches on Subject: below --
2009-01-04  3:33 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
2009-01-25 23:58 David De La Harpe Golden
2009-08-07 19:31 Ole Laursen

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=ac6fcf750901050452w2d696f5ar288545657e103d5e@mail.gmail.com \
    --to=olau@hardworking.dk \
    --cc=1765@emacsbugs.donarmstrong.com \
    --cc=bug-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.