From: Eli Zaretskii <eliz@gnu.org>
To: alain.cochard@unistra.fr
Cc: emacs-devel@gnu.org
Subject: Re: org-copy-visible does not work with x-select-enable-primary
Date: Mon, 10 Sep 2018 20:27:35 +0300 [thread overview]
Message-ID: <83in3dntyw.fsf@gnu.org> (raw)
In-Reply-To: <23446.35789.351055.673724@frac.u-strasbg.fr> (Alain.Cochard@unistra.fr)
> Date: Mon, 10 Sep 2018 17:20:45 +0200
> From: Alain.Cochard@unistra.fr
> Cc: alain.cochard@unistra.fr,
> emacs-devel@gnu.org
>
> > It will yank only "* foo" if you move the cursor in the Org buffer
> > before yanking, or do anything else that removes the selection
> > (i.e. removes the highlight due to selecting text).
>
> Are you sure??
Quite sure. But it doesn't matter much: what matters is that the
offending string, "* foo\nbar", comes from the call to
gui-selection-value. And once it gets into the kill-ring, you cannot
undo that. org-copy-visible only handles what gets put into the kill
ring when you invoke the command, it doesn't do anything what happens
about invisible text when you yank.
> (NB: With x-select-enable-primary false --default--, it yanks "* foo"
> whether I remove the selection or not.)
Yes, because without that, yanking doesn't consult the primary
selection, it only consults the clipboard.
next prev parent reply other threads:[~2018-09-10 17:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-10 12:15 org-copy-visible does not work with x-select-enable-primary Alain.Cochard
2018-09-10 14:49 ` Eli Zaretskii
2018-09-10 15:20 ` Alain.Cochard
2018-09-10 17:27 ` Eli Zaretskii [this message]
2018-09-10 17:00 ` Stefan Monnier
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=83in3dntyw.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=alain.cochard@unistra.fr \
--cc=emacs-devel@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).