unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David De La Harpe Golden <david@harpegolden.net>
To: Sam Steingold <sds@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: kill-new discards current X selection
Date: Wed, 26 Aug 2009 20:36:52 +0100	[thread overview]
Message-ID: <4A958ED4.9010000@harpegolden.net> (raw)
In-Reply-To: <4A95606A.6050606@gnu.org>

Sam Steingold wrote:
> When I select a word in an xterm and then kill in emacs, then X 
> selection is gone forever, replaced with the emacs kill.
> The appended patch prepends the current X selection to kill-ring before 
> replacing the X selection with the current Emacs kill.
> Is it OK to install it unconditionally, or is it better to guard it with 
> a user option, e.g., save-interprogram-paste-before-kill?
> 

I'd certainly like that to be optional if it's going in at all. That's 
not to say it's necessarily a bad feature.  But it's not usual behaviour 
in the slightest.

"the" x selection is also an inaccurate way of looking at things -
if you had turned off x-select-enable-primary and turned on
x-select-enable-clipboard, then killing in emacs wouldn't
(necessarily) nuke the xterm's primary, as killing would
be going to the clipboard.   Of course, since you can't specify
incoming and outgoing behaviour separately (a feature that was however
part of my "giant matrix of every silly selection behaviour possible" 
patch a good while back), you also couldn't pull in primary upon yanking 
with those settings...

OTOH, if you'd set emacs select-active-regions, primary might be gone 
already if you used a region to define what to kill, as that would
cause emacs to send whatever's highlighted onscreen in emacs straight to 
primary (but not clipboard!).








      parent reply	other threads:[~2009-08-26 19:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-26 16:18 kill-new discards current X selection Sam Steingold
2009-08-26 18:41 ` Jan D.
2009-08-26 19:28 ` Stefan Monnier
2009-08-26 20:39   ` Sam Steingold
2009-08-27  3:03     ` Stefan Monnier
2009-08-26 19:36 ` David De La Harpe Golden [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A958ED4.9010000@harpegolden.net \
    --to=david@harpegolden.net \
    --cc=emacs-devel@gnu.org \
    --cc=sds@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 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).