From: "Daniel Eklöf" <daniel@ekloef.se>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Philipp Stephani" <phst@google.com>,
"Mattias Engdegård" <mattiase@acm.org>,
36879@debbugs.gnu.org
Subject: bug#36879: 26.2; OSC 52 paste in term/xterm.el not working
Date: Sun, 04 Aug 2019 10:19:07 +0200 [thread overview]
Message-ID: <877e7tqr5w.fsf@mini.la.casa> (raw)
In-Reply-To: <jwvr262km5t.fsf-monnier+emacs@gnu.org>
> - I did test the code with the xterm that comes with Debian.
> I definitely remember making it work it in one direction
> (paste or
> yank, can't remember), not sure if I did get it to work in
> both
> directions at the time.
set-selection has always worked, at least for me. That one is also
enabled by default in xterm.el (when an xterm supporting it is
detected, I assume).
> - The feature is fundamentally dodgy from a security
> perspective.
I'm probably missing something obvious, but how is talking to
xclip more secure than talking to the terminal emulator? Or is the
"security perspective" somewhere else?
> So I'm not sure it's worth the trouble supporting this, really:
> In many/most cases `xclip-mode` can be used instead, and is much
> more straightforward.
Except that xclip assumes x11. Would it not make sense to support
a window protocol agnostic method? By supporting OSC 52, you
support whatever clipboard mechanism the terminal emulator
supports.
Perhaps one could use the heavy weight solution (change quit char)
when 'screen' is detected, but simply use ST in the non-screen
case?
(before I tried this, OSC 52, I was using
https://github.com/bugaevc/wl-clipboard with my own Emacs
"bindings" - yes, I'm on Wayland)
next prev parent reply other threads:[~2019-08-04 8:19 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-31 16:57 bug#36879: 26.2; OSC 52 paste in term/xterm.el not working Daniel Eklöf
2019-07-31 17:24 ` bug#36879: Daniel Eklöf
2019-08-03 11:41 ` bug#36879: 26.2; OSC 52 paste in term/xterm.el not working Mattias Engdegård
2019-08-03 11:52 ` Eli Zaretskii
2019-08-03 12:02 ` Mattias Engdegård
2019-08-03 12:08 ` Eli Zaretskii
2019-08-03 12:26 ` Mattias Engdegård
2019-08-03 13:36 ` Eli Zaretskii
2019-08-03 14:32 ` Mattias Engdegård
2019-08-03 16:59 ` Eli Zaretskii
2019-08-04 9:49 ` Mattias Engdegård
2019-08-03 13:40 ` Daniel Eklöf
2019-08-03 13:49 ` Daniel Eklöf
2019-08-03 21:00 ` Stefan Monnier
2019-08-04 8:19 ` Daniel Eklöf [this message]
2019-08-04 9:44 ` Mattias Engdegård
2019-08-04 10:32 ` Daniel Eklöf
2019-08-04 12:47 ` Stefan Monnier
2019-08-15 19:32 ` Philipp Stephani
2019-08-15 21:28 ` Mattias Engdegård
2019-08-04 12:46 ` Stefan Monnier
2019-08-04 15:59 ` Daniel Eklöf
2019-08-05 11:41 ` Mattias Engdegård
2019-08-05 16:57 ` Daniel Eklöf
2019-08-08 9:37 ` Mattias Engdegård
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=877e7tqr5w.fsf@mini.la.casa \
--to=daniel@ekloef.se \
--cc=36879@debbugs.gnu.org \
--cc=mattiase@acm.org \
--cc=monnier@iro.umontreal.ca \
--cc=phst@google.com \
/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).