From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Date: Mon, 13 Apr 2020 20:52:48 +0200 Message-ID: <87y2qzusjj.fsf@metalevel.at> References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> <87a73fw9hy.fsf@metalevel.at> <83o8rvi6ah.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="92671"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: schwab@linux-m68k.org, 40375@debbugs.gnu.org, npostavs@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 13 20:53:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jO4Ct-000Nyn-04 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Apr 2020 20:53:19 +0200 Original-Received: from localhost ([::1]:47740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO4Cs-0005fr-32 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Apr 2020 14:53:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52751) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO4Cd-0005fQ-8n for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 14:53:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jO4Cb-00053H-La for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 14:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jO4Cb-000537-Hh for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 14:53:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jO4Cb-0006ZK-GM for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 14:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 18:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40375 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Original-Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158680397125235 (code B ref 40375); Mon, 13 Apr 2020 18:53:01 +0000 Original-Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 18:52:51 +0000 Original-Received: from localhost ([127.0.0.1]:60779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO4CQ-0006Yw-NR for submit@debbugs.gnu.org; Mon, 13 Apr 2020 14:52:50 -0400 Original-Received: from [78.47.144.35] (port=38672 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO4CP-0006Yp-If for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 14:52:50 -0400 Original-Received: by metalevel.at (Postfix, from userid 1000) id 7464C9E76A; Mon, 13 Apr 2020 20:52:48 +0200 (CEST) In-Reply-To: <83o8rvi6ah.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Apr 2020 21:34:14 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178327 Archived-At: Eli Zaretskii 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