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:01:13 +0200 Message-ID: <87a73fw9hy.fsf@metalevel.at> References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="5156"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 40375@debbugs.gnu.org, Noam Postavsky To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 13 20:02:15 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 1jO3PT-0001ES-2l for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Apr 2020 20:02:15 +0200 Original-Received: from localhost ([::1]:47282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO3PR-0001cV-R6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Apr 2020 14:02:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47010) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO3PH-0001ap-CW for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 14:02:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jO3PG-0007ix-6L for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 14:02:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jO3PG-0007ir-3N for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 14:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jO3PG-0000xC-05 for bug-gnu-emacs@gnu.org; Mon, 13 Apr 2020 14:02:02 -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:02: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.15868008781279 (code B ref 40375); Mon, 13 Apr 2020 18:02:01 +0000 Original-Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 18:01:18 +0000 Original-Received: from localhost ([127.0.0.1]:60720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO3OX-0000KI-UW for submit@debbugs.gnu.org; Mon, 13 Apr 2020 14:01:18 -0400 Original-Received: from [78.47.144.35] (port=37414 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO3OV-0000HB-HQ for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 14:01:17 -0400 Original-Received: by metalevel.at (Postfix, from userid 1000) id 08EF29E770; Mon, 13 Apr 2020 20:01:14 +0200 (CEST) In-Reply-To: <87r1wrjqdm.fsf@igel.home> (Andreas Schwab's message of "Mon, 13 Apr 2020 18:35:01 +0200") 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:178324 Archived-At: Andreas Schwab writes: > What does your interprogram-paste-function return? Its value is `gui-selection-value'. I have now repeatedly tried it, and sometimes it indeed works as expected (i.e., the image is inserted), but I can reliably trigger the problem when I: 1. open Firefox and browse to the description of this bug, i.e.: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=403752 2. click on the URL bar, so that the text in the URL becomes selected 3. switch to a terminal application using only the keyboard, and then, from the terminal, perform the steps I outlined. In this case, the text that is inserted is not the expected image that was most recently killed in Emacs, but rather the URL from Firefox that is selected in that application. I can reproduce this with XQuartz 1.18.4 (xorg-server 1.18.4) on OSX. Is it possible that yanking in Emacs does not work as expected when text is selected in other applications on this platform? Once this issue occurs, what is yanked is no longer predictable for me: Sometimes it is text that is selected in other applications, sometimes it is text that was copied to the clipboard from other applications, but is no longer selected. It feels like there is no clear pattern. What I would prefer in all these cases is that Emacs yank the text that was most recently killed in this example, which is the sample image that you can reproduce. Thank you and all the best, Markus