From: itchybeard <itchybeard@protonmail.com>
To: help-gnu-emacs List <help-gnu-emacs@gnu.org>
Subject: Why has X11 system clipboard interoperability changed from Emacs 24 to 25?
Date: Thu, 17 Aug 2017 02:42:30 -0400 [thread overview]
Message-ID: <LOlRkuORZMtsuLRhU6N8dBghk3aNW9ro-LTeI9NiInEcE5ivGRkXfDUO7Xc_eyjw1pxrLslEHHVWesJXsdcx_rDQPcNRZqkkGOZK9X4ApRA=@protonmail.com> (raw)
In the Emacs 24 GUI for X11-based desktops I can set
`'(x-select-enable-clipboard nil)` in my config to prevent standard kill ring
commands like `yank`, `kill-region`, and `kill-ring-save` from affecting the X11
system clipboard, and it still allows me to explicitly interoperate with that
clipboard by invoking the commands `clipboard-yank`, `clipboard-kill-region`,
and `clipboard-kill-ring-save`.
But in Emacs 25 the variable `x-select-enable-clipboard` is replaced by
`select-enable-clipboard` which when set to `nil` in my config yields different
results: *all* interoperability with the X11 system clipboard is disabled. Even
the commands `clipboard-yank`, `clipboard-kill-region`, and
`clipboard-kill-ring-save` revert to using Emacs' kill ring exclusively, in fact
they have identical effects to using plain `yank`, `kill-region`, and
`kill-ring-save`, so what's their purpose when `select-enable-clipboard` is set
to `nil`?
What is the reasoning behind this change in behavior, and is it possible to
replicate the Emacs 24 behavior in Emacs 25 using built-in configuration
options, or will I have to start using a custom solution like simpleclip? I want
a kill ring and X11 system clipboard that are independent, and I want
interoperability between them but only explicitly, e.g. to use `yank` to paste
content from the kill ring and `clipboard-yank` to paste content from the X11
system clipboard.
There is an open bug related to this changed clipboard behavior:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27442
next reply other threads:[~2017-08-17 6:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 6:42 itchybeard [this message]
2017-08-17 14:30 ` Why has X11 system clipboard interoperability changed from Emacs 24 to 25? Eli Zaretskii
2017-08-17 17:15 ` Glenn Morris
2017-08-18 1:25 ` itchybeard
2017-08-18 3:03 ` itchybeard
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='LOlRkuORZMtsuLRhU6N8dBghk3aNW9ro-LTeI9NiInEcE5ivGRkXfDUO7Xc_eyjw1pxrLslEHHVWesJXsdcx_rDQPcNRZqkkGOZK9X4ApRA=@protonmail.com' \
--to=itchybeard@protonmail.com \
--cc=help-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.
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).