unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Markus Triska <triska@metalevel.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: schwab@linux-m68k.org, 40375@debbugs.gnu.org, npostavs@gmail.com
Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn
Date: Mon, 13 Apr 2020 20:52:48 +0200	[thread overview]
Message-ID: <87y2qzusjj.fsf@metalevel.at> (raw)
In-Reply-To: <83o8rvi6ah.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Apr 2020 21:34:14 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

> Do you have some clipboard-managing software installed and active?  If
> so, can you disable it?

To the best of my knowledge, I have no such tool installed or active.

> When the system clipboard holds stuff from another application, C-y
> will by default yank that first.  If some software on your system
> rearranges the clipboard in some way that makes Emacs think the stuff
> in the clipboard was copied there after you killed something in Emacs,
> Emacs will behave as you describe.
>
> IOW, I don't believe this is an Emacs problem.

From the documentation of `yank', I got the impression that the most
recently killed text should reliably be inserted in the example I
posted, because the description of `yank' describes it as:

   Reinsert ("paste") the last stretch of killed text.
   More precisely, reinsert the most recent kill, which is the
   stretch of killed text most recently killed OR yanked.

However, from your description, it seems this documentation is not
accurate, because the clipboard may unexpcetedly also play a role.

Could you please consider updating the documentation if necessary?
Alternatively, is there a way to get `yank' to do what this states,
i.e., to always insert the most recently killed or yanked text,
disregarding the clipboard contents of the operating platform?

Thank you and all the best,
Markus





  reply	other threads:[~2020-04-13 18:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 16:14 bug#40375: 27.0.50; yank unexpectedly depends on progn Markus Triska
2020-04-01 16:57 ` Noam Postavsky
2020-04-01 17:53   ` Markus Triska
2020-04-01 23:11     ` Noam Postavsky
2020-04-13 16:14       ` Noam Postavsky
2020-04-13 16:22         ` Markus Triska
2020-04-13 16:30           ` Noam Postavsky
2020-04-13 16:35     ` Andreas Schwab
2020-04-13 18:01       ` Markus Triska
2020-04-13 18:34         ` Eli Zaretskii
2020-04-13 18:52           ` Markus Triska [this message]
2020-04-13 19:35             ` Eli Zaretskii
2020-04-13 19:46               ` Markus Triska
2020-04-13 22:16                 ` Noam Postavsky
2020-04-13 22:44                   ` Drew Adams
2020-04-14  5:39                   ` Eli Zaretskii

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=87y2qzusjj.fsf@metalevel.at \
    --to=triska@metalevel.at \
    --cc=40375@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=npostavs@gmail.com \
    --cc=schwab@linux-m68k.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).