From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2020 16:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40375 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 40375@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158575766514970 (code B ref -1); Wed, 01 Apr 2020 16:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Apr 2020 16:14:25 +0000 Received: from localhost ([127.0.0.1]:38588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJg0W-0003tK-OK for submit@debbugs.gnu.org; Wed, 01 Apr 2020 12:14:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:59926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJg0V-0003t9-86 for submit@debbugs.gnu.org; Wed, 01 Apr 2020 12:14:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59138) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJg0T-00087Z-SY for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2020 12:14:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJg0R-0008GQ-JI for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2020 12:14:21 -0400 Received: from [78.47.144.35] (port=53208 helo=metalevel.at) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jJg0R-0008AL-Cr for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2020 12:14:19 -0400 Received: from mts-Mac-mini.localdomain (localhost [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 443B89E759 for ; Wed, 1 Apr 2020 18:14:17 +0200 (CEST) Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id 0F841BD847C; Wed, 1 Apr 2020 18:14:46 +0200 (CEST) From: Markus Triska Date: Wed, 01 Apr 2020 18:14:46 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 78.47.144.35 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Suppose yank.el comprises the following forms: (erase-buffer) (let* ((size 144) (data (with-temp-buffer (insert (format "P1\n%s %s\n" size size)) (dotimes (_ size) (dotimes (_ size) (insert "1 ")) (insert "\n")) (buffer-string)))) (insert-image `(image :type pbm :data ,data :ascent center) "t")) (kill-new (buffer-string)) (erase-buffer) (yank) When I start Emacs with: $ emacs -Q yank.el --eval='(eval-buffer)' then Emacs starts, and I see an empty buffer. However, when I embed the entire contents of yank.el in (progn ...), i.e., if yank.el consists of the following form: (progn (erase-buffer) (let* ((size 144) (data (with-temp-buffer (insert (format "P1\n%s %s\n" size size)) (dotimes (_ size) (dotimes (_ size) (insert "1 ")) (insert "\n")) (buffer-string)))) (insert-image `(image :type pbm :data ,data :ascent center) "t")) (kill-new (buffer-string)) (erase-buffer) (yank)) and I then start Emacs (again) with: $ emacs -Q yank.el --eval='(eval-buffer)' Then I see a black box in the buffer. Hence, what (yank) inserts seems to unexpectedly depend on whether progn is used. Is there a way to get the same result also if progn is not used? Thank you and all the best! Markus In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin18.0.0, X toolkit, Xaw scroll bars) of 2018-11-15 built on mts-mac Repository revision: b4eb908f858284a7962851fd99c94598f76afa6f Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Mac OS X 10.14.2 Configured using: 'configure --prefix=/opt/local --without-ns --without-dbus --without-gconf --without-libotf --without-m17n-flt --without-gpm --with-gnutls --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-json --with-x-toolkit=lucid --without-xaw3d --without-imagemagick --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-lcms2 --without-rsvg --with-xft 'CFLAGS=-pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64' 'CPPFLAGS=-I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-no_pie -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64'' Configured features: XPM JPEG TIFF GIF PNG NOTIFY KQUEUE ACL GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON LCMS2 GMP Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2020 16:58: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: To: Markus Triska Cc: 40375@debbugs.gnu.org Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158576026124349 (code B ref 40375); Wed, 01 Apr 2020 16:58:01 +0000 Received: (at 40375) by debbugs.gnu.org; 1 Apr 2020 16:57:41 +0000 Received: from localhost ([127.0.0.1]:38599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJggP-0006Kf-Ab for submit@debbugs.gnu.org; Wed, 01 Apr 2020 12:57:41 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:43732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJggN-0006K4-3f for 40375@debbugs.gnu.org; Wed, 01 Apr 2020 12:57:39 -0400 Received: by mail-qt1-f179.google.com with SMTP id a5so603949qtw.10 for <40375@debbugs.gnu.org>; Wed, 01 Apr 2020 09:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=tv5PpLjdhB6Sd0wpfhvC2FCjUrH0ipy2wue3yf752fo=; b=i3vlcdA1q6mwXbI5QwyYimdoqqr4Rxq0LuMOq0gSZDHrX1QwURTMeYb6b7MH6eX+JF m9dQkqxUYgq7RtiLPThMIGTRcsJrSyoSe9YEjsWpUzRJ9o2fRHDw14ReyamUPgWzlfNt HsxXu761UOIVTbpTC/RMUksxaYEXMGezfdDIp69/grm/Ivvfr0iIu4hsHdFTL5HDKeHg hZPeiC3vQCat07VFk7wmTKcBNosl8BJUrv+RIeCVtu3GnvgvIZJVWSezHIlnKZzeW16p YfqNq8iHqh1d0gm39RbVFrL5FZSlwK6cIIyWkb390kbO0pWS3r6rHyjNMK7/zA8oIKER 5dDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=tv5PpLjdhB6Sd0wpfhvC2FCjUrH0ipy2wue3yf752fo=; b=DLKgumk2lBZyinlt29RAoehAGPptn6AXz5OwGyn39J/H4iOr+VH1inW9KHIQFsdwly fllX+BLvOV92jfn/qhYGyzZ9sq+IQsWp2hxTpRN3LX6wXh3bqD3cb3n8LLCjhGt42vy3 gwsZWjSRwIbYE9ELrr2GNZWx50VV9OiDViFyaQOcGenWG5fX4QTecGa7w6V5hfmt2i69 7Bfq55DlOFMP02qoCoh9gUAhnal+xnudc+P+KK9Ou5o+NPFuP0H0r9iQaPVF8u00BaaS aYLeYQkazkvOYZHFg8wyhxsqhZQUG/hGRuXiL9Bzx8rVPl7VqKmzFbZUZWrS7HfXOwq8 qCNg== X-Gm-Message-State: ANhLgQ1+LbSvO07wwTc9fX9uTxRUsL4pgTG0VHEzlDny/ItVtC1hGcw2 feu6fEmjtl/pOJBfKlHJO8z5oAJEKyY= X-Google-Smtp-Source: ADFU+vuusz5uihqoIxH+gIx9e1y9SloOes6RD+No7S1yIl2GaQRKukDhKYVaBBN8E8QiRc6X1LYAqA== X-Received: by 2002:aed:3ae9:: with SMTP id o96mr11163488qte.28.1585760252130; Wed, 01 Apr 2020 09:57:32 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.38.42]) by smtp.gmail.com with ESMTPSA id f14sm1746227qtp.55.2020.04.01.09.57.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Apr 2020 09:57:28 -0700 (PDT) From: Noam Postavsky References: Date: Wed, 01 Apr 2020 12:57:28 -0400 In-Reply-To: (Markus Triska's message of "Wed, 01 Apr 2020 18:14:46 +0200") Message-ID: <851rp7nnyf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Markus Triska writes: > $ emacs -Q yank.el --eval='(eval-buffer)' A simpler reproducer is (erase-buffer) (message "hello") will print nothing, whereas (progn (erase-buffer) (message "hello")) prints "hello". The problem is the first case erases the code which calls message before it is read in. From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2020 17:54:02 +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: To: Noam Postavsky Cc: 40375@debbugs.gnu.org Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.15857636273458 (code B ref 40375); Wed, 01 Apr 2020 17:54:02 +0000 Received: (at 40375) by debbugs.gnu.org; 1 Apr 2020 17:53:47 +0000 Received: from localhost ([127.0.0.1]:38637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJhYh-0000ti-35 for submit@debbugs.gnu.org; Wed, 01 Apr 2020 13:53:47 -0400 Received: from [78.47.144.35] (port=46284 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJhYe-0000tR-O7 for 40375@debbugs.gnu.org; Wed, 01 Apr 2020 13:53:45 -0400 Received: by metalevel.at (Postfix, from userid 1000) id 3FEDE9E770; Wed, 1 Apr 2020 19:53:43 +0200 (CEST) From: Markus Triska References: <851rp7nnyf.fsf@gmail.com> Date: Wed, 01 Apr 2020 19:53:43 +0200 In-Reply-To: <851rp7nnyf.fsf@gmail.com> (Noam Postavsky's message of "Wed, 01 Apr 2020 12:57:28 -0400") Message-ID: <87o8sbgkig.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Noam Postavsky writes: > prints "hello". The problem is the first case erases the code which > calls message before it is read in. OK, here is a better test case. Let yank.el consist of the single form: Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Noam Postavsky writes: > prints "hello". The problem is the first case erases the code which > calls message before it is read in. OK, here is a better test case. Let yank.el consist of the single form: (let ((data (base64-decode-string "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAbBAMAAAC+faPKAAAALVBMVEX///8AAACgoKDg4OBAQEDA wMAQEBCQkJAgICCAgIBwcHAwMDBgYGDQ0NDw8PALucPOAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA X0lEQVQIHWNgYGBQBmIQcIVQDKkQmlkUQrNDaQ4oPRFCswuCaatGQWkXFwcGy5mNMjNnTgBqcYSq o4Q2gpoTgoVeKMTAUAUUvygDcTKXYACTA5DPoCG95QGIZjC9wAAAJ0UR8BmY4ewAAAAASUVORK5C YII="))) (kill-new (propertize data 'display `(image :type png :data ,data :ascent center)))) When I start Emacs with: $ emacs -Q yank.el --eval='(eval-buffer)' and then press C-y to yank, the image that was most recently killed via kill-new is unexpectedly not inserted. However, when I invoke Emacs with the form wrapped in (progn ...), followed by (yank), i.e. with: $ emacs -Q yank.el --eval='(progn (eval-buffer) (yank))' then the image is indeed inserted. Why is there this difference? Thank you a lot for looking into this! All the best, Markus From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Apr 2020 23:13: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: To: Markus Triska Cc: 40375@debbugs.gnu.org Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158578272811884 (code B ref 40375); Wed, 01 Apr 2020 23:13:01 +0000 Received: (at 40375) by debbugs.gnu.org; 1 Apr 2020 23:12:08 +0000 Received: from localhost ([127.0.0.1]:38846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJmWl-00035b-Mp for submit@debbugs.gnu.org; Wed, 01 Apr 2020 19:12:07 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:37714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJmWi-00034r-Tl for 40375@debbugs.gnu.org; Wed, 01 Apr 2020 19:12:06 -0400 Received: by mail-qt1-f182.google.com with SMTP id z24so1780677qtu.4 for <40375@debbugs.gnu.org>; Wed, 01 Apr 2020 16:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=YLOytnYvahKvG5EOnVW83AwIg3SsNc7ymJE54QuJfM4=; b=vY70dVuhz+z/MVphIy3mspBsFeShl9N77mNbN+RB4nexqMY2e8rf1ERtdzlqyP2XFN ScDhR8pHfn+yONiZdliSN3K2WWfXVFs9V+IhnPG0Yjo8O5kMDULee5rkv9Snb7/nB95W fA22mCtTLewfHKrULTnClxs/qnsuuFLdcauo3VNmpQWBh0Xk9vQ1NbzRsl4Dn6L2mOqG FKukoBK2uX6dmCd7uq2CW3cQCDfO2NysaW0xqQHqkSZcb93vtWFbPP8oXFbj37DMN473 e4i1YPW1FJfIW162AQjltTsV9LGzdH+38kYuCD5L5+R7Ypn0XTc7pQ1KFoqSdqvld+pn k9jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=YLOytnYvahKvG5EOnVW83AwIg3SsNc7ymJE54QuJfM4=; b=i5pUmVKITXeefSdr5mQ4kcou4eY3nSlTI0KM7DDgUpzQNFTCxQVfYR3JHG8/bZATFu sa/3EIXxV9RuBcCSURCKSMdpITzpALDjN/RlQMwhLoRw+MvKaMgA4dW3xIpl5YASGPeL +8acRU2Uxgf8khPJSvn5e5gk7KfED9rYPOIq6hgGRTP69mI8LgS7JFIwfdmVxmkwXnFw jDphk6c+7LfpPjB5rnYqiXN5IV+jRHmdHy9tsFjR7UppzWT8LmSQXWqAXHQ6Mnx+KZ94 x/cWc9bgsoCi+aBvm+1ccmFuf+eprG9HRc81gt8YsPY4eEaJVEzxZIDhUEozBlPlnZVS rlwA== X-Gm-Message-State: AGi0PuZL9RJDYHa2Hj1XzGd91YKc62lW7QeIu55oS1ef9WnmodZp3dbi OmRy8SwRDH7TZpDhnjxZ15smJsZp X-Google-Smtp-Source: APiQypK1AW/NCNi/jIag6dWIRW5eVWs2dbxjKzt8JTLYsrMnoT8ZQhKWOsILj9wCxJ3vmKelMjO36Q== X-Received: by 2002:aed:3fef:: with SMTP id w44mr140722qth.387.1585782719257; Wed, 01 Apr 2020 16:11:59 -0700 (PDT) Received: from minid (cbl-45-2-119-47.yyz.frontiernetworks.ca. [45.2.119.47]) by smtp.gmail.com with ESMTPSA id p1sm2411266qkf.73.2020.04.01.16.11.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Apr 2020 16:11:58 -0700 (PDT) From: Noam Postavsky References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> Date: Wed, 01 Apr 2020 19:11:57 -0400 In-Reply-To: <87o8sbgkig.fsf@metalevel.at> (Markus Triska's message of "Wed, 01 Apr 2020 19:53:43 +0200") Message-ID: <875zeiiywy.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Markus Triska writes: > > (let ((data (base64-decode-string > "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAbBAMAAAC+faPKAAAALVBMVEX///8AAACgoKDg4OBAQEDA > wMAQEBCQkJAgICCAgIBwcHAwMDBgYGDQ0NDw8PALucPOAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA > X0lEQVQIHWNgYGBQBmIQcIVQDKkQmlkUQrNDaQ4oPRFCswuCaatGQWkXFwcGy5mNMjNnTgBqcYSq > o4Q2gpoTgoVeKMTAUAUUvygDcTKXYACTA5DPoCG95QGIZjC9wAAAJ0UR8BmY4ewAAAAASUVORK5C > YII="))) > (kill-new > (propertize data 'display `(image :type png :data ,data :ascent center)))) > > When I start Emacs with: > > $ emacs -Q yank.el --eval='(eval-buffer)' > > and then press C-y to yank, the image that was most recently killed via > kill-new is unexpectedly not inserted. I'm not able to reproduce this, the image (of a lower case t) yanks just fine for me. From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 16:15: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: To: Markus Triska Cc: 40375@debbugs.gnu.org Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158679448327334 (code B ref 40375); Mon, 13 Apr 2020 16:15:01 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 16:14:43 +0000 Received: from localhost ([127.0.0.1]:60593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO1jP-00076j-CM for submit@debbugs.gnu.org; Mon, 13 Apr 2020 12:14:43 -0400 Received: from mail-qv1-f54.google.com ([209.85.219.54]:39176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO1jN-00076R-Vc; Mon, 13 Apr 2020 12:14:42 -0400 Received: by mail-qv1-f54.google.com with SMTP id v38so4625017qvf.6; Mon, 13 Apr 2020 09:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=0aoXjH+u69dqHyoo1OcgtDkkOmKpZ9BRUFzXl0z0YD4=; b=AcIKMOMDQI1V6opr+yJbN+ASI9XX3MMcR0TcFgeQC7qBsKZ3gevZ9WqM/6MznIDrXc bXghaESY1VpCbDwGj8xlkAdVyqA/fnHOAYO28rUKMrGuA/2yNZTeeSChJeIliXtSfjCL cELoe/+KD02uLmx9a/GDEJ2mj+yE2etnqTOCLEeWFU5FvUi9rMf4OPW+yUEYhf2DOZ93 I8EPSpH9+wEvjV3qDVhS2YTH6nOlDBYr9hOSTcpYDLlNFCTAoUg+W+hAt3fTWllCtZUp po7/uvpak4K6wjuA3Y0R0Cynlr/nE0GRlyoXzOWGsM1NnOZujtCiXhd5jZwheBn/0U/f Le5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=0aoXjH+u69dqHyoo1OcgtDkkOmKpZ9BRUFzXl0z0YD4=; b=sfO5SqQeqNX6ejoe9/Dg5uXTJLx4dt1ttHzKVjsoCxTEDaaTqh2wmTtbW42HgBumUN cSmHsY/3dU34Sv+DkclfpSKTTSnVeRUjAZIzpRwiARlrsfCrH4JkwtRdvRKdkch/J7xh xBjT84MJ5oNvNhGkSdmxY4VW7D78zRek+Dct/aoK61n1kfEIEilvcQICIE6ChcBe3nUb 7JXVYdvuk920mh9dFhwta21T8zh/sN+AVQYKk/J4fGDK7gncElg24lriWJH9Wl+GSDns TsVMYkkEjwUT8zRzYFJ+s+7Li1SmD0nxHVQ2IpWxU+M7y0yvASQfJqpjWPasPdiGI5zh NMwg== X-Gm-Message-State: AGi0PuZ2nKOhRikd7gmn28yIA0wQisX2PrZAy/4Nx4WaIZ0veGgvZAv/ zSQcBnoMMX/fEi7KHnI11D/W6W1d4CQ= X-Google-Smtp-Source: APiQypJBcAcjRlvtJ+wveJyE7e/8zNbQ32rJA7HcNC3mq9WSKwSc6cbaM+mMadQ+MKDcDSweAJTlCg== X-Received: by 2002:a0c:fdc3:: with SMTP id g3mr18157839qvs.184.1586794476391; Mon, 13 Apr 2020 09:14:36 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.38.42]) by smtp.gmail.com with ESMTPSA id d85sm1699507qkc.99.2020.04.13.09.14.35 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Apr 2020 09:14:35 -0700 (PDT) From: Noam Postavsky References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <875zeiiywy.fsf@gmail.com> Date: Mon, 13 Apr 2020 12:14:35 -0400 In-Reply-To: <875zeiiywy.fsf@gmail.com> (Noam Postavsky's message of "Wed, 01 Apr 2020 19:11:57 -0400") Message-ID: <85k12jz7kk.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) tags 40375 unreproducible close 40375 quit Noam Postavsky writes: > Markus Triska writes: >> >> (let ((data (base64-decode-string >> "iVBORw0KGgoAAAANSUhEUgAAAA4AAAAbBAMAAAC+faPKAAAALVBMVEX///8AAACgoKDg4OBAQEDA >> wMAQEBCQkJAgICCAgIBwcHAwMDBgYGDQ0NDw8PALucPOAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA >> X0lEQVQIHWNgYGBQBmIQcIVQDKkQmlkUQrNDaQ4oPRFCswuCaatGQWkXFwcGy5mNMjNnTgBqcYSq >> o4Q2gpoTgoVeKMTAUAUUvygDcTKXYACTA5DPoCG95QGIZjC9wAAAJ0UR8BmY4ewAAAAASUVORK5C >> YII="))) >> (kill-new >> (propertize data 'display `(image :type png :data ,data :ascent center)))) >> >> When I start Emacs with: >> >> $ emacs -Q yank.el --eval='(eval-buffer)' >> >> and then press C-y to yank, the image that was most recently killed via >> kill-new is unexpectedly not inserted. > > I'm not able to reproduce this, the image (of a lower case t) yanks just > fine for me. No further response, so I'm closing the bug. From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 16:23:02 +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 To: Noam Postavsky Cc: 40375@debbugs.gnu.org Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.15867949313555 (code B ref 40375); Mon, 13 Apr 2020 16:23:02 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 16:22:11 +0000 Received: from localhost ([127.0.0.1]:60600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO1qd-0000vH-3P for submit@debbugs.gnu.org; Mon, 13 Apr 2020 12:22:11 -0400 Received: from [78.47.144.35] (port=35486 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO1qb-0000v8-4X for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 12:22:09 -0400 Received: by metalevel.at (Postfix, from userid 1000) id 75F839E76A; Mon, 13 Apr 2020 18:22:07 +0200 (CEST) From: Markus Triska References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <875zeiiywy.fsf@gmail.com> <85k12jz7kk.fsf@gmail.com> Date: Mon, 13 Apr 2020 18:22:07 +0200 In-Reply-To: <85k12jz7kk.fsf@gmail.com> (Noam Postavsky's message of "Mon, 13 Apr 2020 12:14:35 -0400") Message-ID: <87o8rvs6ds.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Noam Postavsky writes: > No further response, so I'm closing the bug. I can still reproduce it. Is there anything else I can provide to help with this issue? Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Noam Postavsky writes: > No further response, so I'm closing the bug. I can still reproduce it. Is there anything else I can provide to help with this issue? From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 16:32:02 +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 To: Markus Triska Cc: 40375@debbugs.gnu.org Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.15867954618237 (code B ref 40375); Mon, 13 Apr 2020 16:32:02 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 16:31:01 +0000 Received: from localhost ([127.0.0.1]:60610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO1zB-00028W-9V for submit@debbugs.gnu.org; Mon, 13 Apr 2020 12:31:01 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:46761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO1z8-000215-Vk for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 12:30:59 -0400 Received: by mail-qk1-f179.google.com with SMTP id g74so9975241qke.13 for <40375@debbugs.gnu.org>; Mon, 13 Apr 2020 09:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1V89Jlv9mrTdZJyNePb+xv66BBZ+LXcLj6w8N0h4CzE=; b=Qeoidx2sLBxa54OGis6uqURhkCM+u/1WFXNGkxRP7m2/xDZsDJyGVxtLArEyZRwo/t jKStydsJgdyluYwNjTugdjDleoRB/ATwkhLtYbY1kUKNjjmW+EqK7ZodqTCkNnBS0jfz bMrwBzN6wO0wikS74BubOohcITLtHhIZbOlnlo2kgthfCIm2E2/nWPE8m/0OsSAO/rIn koRiuPuf+MRj7+SskRPcUMtHwwOFZPxAgILUXmg5bRlhM/CxmT9qOeUIIjTLlMIs79yr XElyZqptf26uHsAZJ0jvvw5nePQO+09zQhQvZkyy8nRpegHc1WCYH7hvYkXruap9zab/ UDSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1V89Jlv9mrTdZJyNePb+xv66BBZ+LXcLj6w8N0h4CzE=; b=DugZQSPutxpPQv2yyjkkedvu5fXz3yisLNzs6F1L9dWcOpUVfSU+F3+H4t+4DC1zx8 c4awKr1x1dcaFRs3/uo0wrBfkRjWQWEdk4QCxcBG1Xs/RrZROTk777/ZDcLhvGSHongL r50dHBGONFI2xymyml3grafJ6JGKcvdfBx6eoGH+i1EhnMaMcE0UDbXJ2/sbmsl7ivUJ zBGQo2sV00pi5MoZ/5rQmJB7XdLdanj8UH5r2Qa2ISZLY3OfmWxnBYaa0bolaa98i9z8 amiIlpgsX/9v0X7rB9T0RWtCkKBBwNbeUUYHFzbL767mnC5A+p+cdKYOZOC1gtLx1LyI TPJw== X-Gm-Message-State: AGi0PubU5Hu02x54u/o+HDcA6j9zzSTNDFcuUAHCcVem3CtSoSgJ3xI/ k+LS1pOjHYhi8y6m5GB5uq13FAKu69Q= X-Google-Smtp-Source: APiQypJy/+/5Nzh+JVmuvht3aWOrZh2IvaQJ1Fu3yQobQ6AU+UhdXdEZq+kNXpJRjlx7rp/Fx9ISqQ== X-Received: by 2002:a05:620a:2013:: with SMTP id c19mr14893811qka.162.1586795453260; Mon, 13 Apr 2020 09:30:53 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.38.42]) by smtp.gmail.com with ESMTPSA id g25sm1332767qkl.50.2020.04.13.09.30.52 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Apr 2020 09:30:52 -0700 (PDT) From: Noam Postavsky References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <875zeiiywy.fsf@gmail.com> <85k12jz7kk.fsf@gmail.com> <87o8rvs6ds.fsf@metalevel.at> Date: Mon, 13 Apr 2020 12:30:52 -0400 In-Reply-To: <87o8rvs6ds.fsf@metalevel.at> (Markus Triska's message of "Mon, 13 Apr 2020 18:22:07 +0200") Message-ID: <85h7xnz6tf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) Markus Triska writes: > Noam Postavsky writes: > >> No further response, so I'm closing the bug. > > I can still reproduce it. Is there anything else I can provide to help > with this issue? Oh, hmm. Could this be macOS specific? Does this happen only on 27.0.50? What about the latest 27.0.90 pretest? 26.3? From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 16:36:02 +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 To: Markus Triska Cc: 40375@debbugs.gnu.org, Noam Postavsky Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158679570712748 (code B ref 40375); Mon, 13 Apr 2020 16:36:02 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 16:35:07 +0000 Received: from localhost ([127.0.0.1]:60614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO238-0003JY-Vb for submit@debbugs.gnu.org; Mon, 13 Apr 2020 12:35:07 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:55391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO237-0003JN-22 for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 12:35:05 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 491Djz4ZPCz1qrLc; Mon, 13 Apr 2020 18:35:03 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 491Djz2p53z1r0cV; Mon, 13 Apr 2020 18:35:03 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id jPOJP28uBNk9; Mon, 13 Apr 2020 18:35:02 +0200 (CEST) X-Auth-Info: RNogAQopkb80fjel/EGBgVkT1AsU735aAxBjDFTXm1mIUuBtgikajGGjd4/Oepvj Received: from igel.home (ppp-46-244-177-79.dynamic.mnet-online.de [46.244.177.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 13 Apr 2020 18:35:02 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id E1D5D2C293B; Mon, 13 Apr 2020 18:35:01 +0200 (CEST) From: Andreas Schwab References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> X-Yow: Uh-oh -- WHY am I suddenly thinking of a VENERABLE religious leader frolicking on a FORT LAUDERDALE weekend? Date: Mon, 13 Apr 2020 18:35:01 +0200 In-Reply-To: <87o8sbgkig.fsf@metalevel.at> (Markus Triska's message of "Wed, 01 Apr 2020 19:53:43 +0200") Message-ID: <87r1wrjqdm.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Apr 01 2020, Markus Triska wrote: > When I start Emacs with: > > $ emacs -Q yank.el --eval='(eval-buffer)' > > and then press C-y to yank, the image that was most recently killed via > kill-new is unexpectedly not inserted. However, when I invoke Emacs > with the form wrapped in (progn ...), followed by (yank), i.e. with: > > $ emacs -Q yank.el --eval='(progn (eval-buffer) (yank))' > > then the image is indeed inserted. What does your interprogram-paste-function return? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn 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 To: Andreas Schwab Cc: 40375@debbugs.gnu.org, Noam Postavsky Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.15868008781279 (code B ref 40375); Mon, 13 Apr 2020 18:02:01 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 18:01:18 +0000 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 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 Received: by metalevel.at (Postfix, from userid 1000) id 08EF29E770; Mon, 13 Apr 2020 20:01:14 +0200 (CEST) From: Markus Triska References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> Date: Mon, 13 Apr 2020 20:01:13 +0200 In-Reply-To: <87r1wrjqdm.fsf@igel.home> (Andreas Schwab's message of "Mon, 13 Apr 2020 18:35:01 +0200") Message-ID: <87a73fw9hy.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Andreas Schwab writes: > What does your interprogram-paste-function return? Its value is `gui-selection-value'. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gnu.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) 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 From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 18:35:02 +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 To: Markus Triska Cc: 40375@debbugs.gnu.org, schwab@linux-m68k.org, npostavs@gmail.com Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158680287515754 (code B ref 40375); Mon, 13 Apr 2020 18:35:02 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 18:34:35 +0000 Received: from localhost ([127.0.0.1]:60770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO3uk-000462-US for submit@debbugs.gnu.org; Mon, 13 Apr 2020 14:34:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO3uf-00045k-Lb for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 14:34:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53280) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jO3uZ-0001g5-HU; Mon, 13 Apr 2020 14:34:23 -0400 Received: from [176.228.60.248] (port=4860 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jO3uX-0000ja-TH; Mon, 13 Apr 2020 14:34:22 -0400 Date: Mon, 13 Apr 2020 21:34:14 +0300 Message-Id: <83o8rvi6ah.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87a73fw9hy.fsf@metalevel.at> (message from Markus Triska on Mon, 13 Apr 2020 20:01:13 +0200) References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> <87a73fw9hy.fsf@metalevel.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Markus Triska > Date: Mon, 13 Apr 2020 20:01:13 +0200 > Cc: 40375@debbugs.gnu.org, Noam Postavsky > > 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. Do you have some clipboard-managing software installed and active? If so, can you disable it? > 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. 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 unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn 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 To: Eli Zaretskii Cc: 40375@debbugs.gnu.org, schwab@linux-m68k.org, npostavs@gmail.com Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158680397125235 (code B ref 40375); Mon, 13 Apr 2020 18:53:01 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 18:52:51 +0000 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 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 Received: by metalevel.at (Postfix, from userid 1000) id 7464C9E76A; Mon, 13 Apr 2020 20:52:48 +0200 (CEST) From: Markus Triska References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> <87a73fw9hy.fsf@metalevel.at> <83o8rvi6ah.fsf@gnu.org> Date: Mon, 13 Apr 2020 20:52:48 +0200 In-Reply-To: <83o8rvi6ah.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Apr 2020 21:34:14 +0300") Message-ID: <87y2qzusjj.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gnu.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) 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 From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 19:36: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 To: Markus Triska Cc: 40375@debbugs.gnu.org, schwab@linux-m68k.org, npostavs@gmail.com Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158680655929482 (code B ref 40375); Mon, 13 Apr 2020 19:36:01 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 19:35:59 +0000 Received: from localhost ([127.0.0.1]:60837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO4sB-0007fS-GA for submit@debbugs.gnu.org; Mon, 13 Apr 2020 15:35:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO4s8-0007fC-Ro for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 15:35:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jO4s2-0000R5-MJ; Mon, 13 Apr 2020 15:35:50 -0400 Received: from [176.228.60.248] (port=4618 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jO4s1-0000jg-Re; Mon, 13 Apr 2020 15:35:50 -0400 Date: Mon, 13 Apr 2020 22:35:39 +0300 Message-Id: <83mu7fi3g4.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87y2qzusjj.fsf@metalevel.at> (message from Markus Triska on Mon, 13 Apr 2020 20:52:48 +0200) References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> <87a73fw9hy.fsf@metalevel.at> <83o8rvi6ah.fsf@gnu.org> <87y2qzusjj.fsf@metalevel.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Markus Triska > Cc: schwab@linux-m68k.org, 40375@debbugs.gnu.org, npostavs@gmail.com > Date: Mon, 13 Apr 2020 20:52:48 +0200 > > 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? Yes, set interprogram-paste-function to nil. From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 19:47: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 To: Eli Zaretskii Cc: 40375@debbugs.gnu.org, schwab@linux-m68k.org, npostavs@gmail.com Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158680720630454 (code B ref 40375); Mon, 13 Apr 2020 19:47:01 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 19:46:46 +0000 Received: from localhost ([127.0.0.1]:60841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO52c-0007v8-Fn for submit@debbugs.gnu.org; Mon, 13 Apr 2020 15:46:46 -0400 Received: from [78.47.144.35] (port=39888 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO52a-0007v0-SO for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 15:46:45 -0400 Received: by metalevel.at (Postfix, from userid 1000) id C660A9E76A; Mon, 13 Apr 2020 21:46:43 +0200 (CEST) From: Markus Triska References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> <87a73fw9hy.fsf@metalevel.at> <83o8rvi6ah.fsf@gnu.org> <87y2qzusjj.fsf@metalevel.at> <83mu7fi3g4.fsf@gnu.org> Date: Mon, 13 Apr 2020 21:46:43 +0200 In-Reply-To: <83mu7fi3g4.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Apr 2020 22:35:39 +0300") Message-ID: <877dyjb23g.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eli Zaretskii writes: > Yes, set interprogram-paste-function to nil. Perfect, this makes the test case work as intended! Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: gnu.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Eli Zaretskii writes: > Yes, set interprogram-paste-function to nil. Perfect, this makes the test case work as intended! Please consider documenting this in the description of `yank'. Other than that, I consider this issue resolved. Thank you a lot! From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 22:17:02 +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 To: Markus Triska Cc: schwab@linux-m68k.org, Eli Zaretskii , 40375@debbugs.gnu.org Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158681620120415 (code B ref 40375); Mon, 13 Apr 2020 22:17:02 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 22:16:41 +0000 Received: from localhost ([127.0.0.1]:32773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO7Ng-0005JD-MK for submit@debbugs.gnu.org; Mon, 13 Apr 2020 18:16:40 -0400 Received: from mail-qk1-f181.google.com ([209.85.222.181]:37218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO7Nf-0005J0-M7 for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 18:16:39 -0400 Received: by mail-qk1-f181.google.com with SMTP id s63so7108578qke.4 for <40375@debbugs.gnu.org>; Mon, 13 Apr 2020 15:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=h7MbMv3M7mKCyPTWB45G1qqSTlnm06tPCZxOII0kHeU=; b=RSKQOwtwgB/CeCKfpd7c7+lCqWAo3gLa26Tjh12f9uyHwU9EekhXUWfajdDcKdlwgk pHf7NOHL2raOXWKi61yy0uZcWNHkKcrPvvbTctH9xw04Z6c0EnMt9S07yjDVNuHzyJJk JUo7u0r32aA+pIjePfX51j9lBKVxYplo1nEg/QavjgpBO05XzKPoEh6He5sxqhqF2z7X sPAKEUMty7un4f2H8X+ZH+niuBbZMOgXmq1hJ/PPhqF0RwKiWEjNNL0vzLu/ijUoHlo5 KatUbxNvghWHHKtV++z3HpV4+k0mp8DWuJBcIqaie8KfuNFjpR6wef279wCNoPFDOrx2 8Qqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=h7MbMv3M7mKCyPTWB45G1qqSTlnm06tPCZxOII0kHeU=; b=NME19JU8CL8cLtNRY8yL3MXqiFylRRgwgOpeofJii46JXE1E4A7WR0aphDYmTE8lWj b339I16V/Mcn4OwQxoIbN4KofvlW3nfoPGKRiOTi0oO8lu7kNl3MGhesRx9cubQ5MFqh NGbpOksyonIxXBEhzM1PnFx0jj8onwpV1WVNerlzS5IQH8W6cw63/8jiQqEgO46AbqTn GWKF2oTmvcIsaEZW3kDePNRWNNfWpWLmp4Lr4ktBd0c6u5TW8Db8R5NCc/AWTefr0fv6 hIsKKrH7j0rMB11s5SHkGG6l6pM28rYDjDCTnmNswTrWLHlXarClVGJOO4xz19sy58Yp v1MA== X-Gm-Message-State: AGi0PuYvkx9F0iQkuebP1AA5CCEH2zcdxoRoObC1HtcTl0R/nMRW1DZI ZH/Xf46bv/vF5AWnEbCp/Xg= X-Google-Smtp-Source: APiQypKVOL4DdfKW18YEVDkj5J3Kw4UOw18HSzYyqqZAtOv/HxeJTMEeLdEM+ZVxrMVaxOk6Sl8W/w== X-Received: by 2002:ae9:ee01:: with SMTP id i1mr18706790qkg.498.1586816194169; Mon, 13 Apr 2020 15:16:34 -0700 (PDT) Received: from minid ([45.2.119.47]) by smtp.gmail.com with ESMTPSA id d23sm6215510qkj.26.2020.04.13.15.16.32 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Apr 2020 15:16:32 -0700 (PDT) From: Noam Postavsky References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> <87a73fw9hy.fsf@metalevel.at> <83o8rvi6ah.fsf@gnu.org> <87y2qzusjj.fsf@metalevel.at> <83mu7fi3g4.fsf@gnu.org> <877dyjb23g.fsf@metalevel.at> Date: Mon, 13 Apr 2020 18:16:26 -0400 In-Reply-To: <877dyjb23g.fsf@metalevel.at> (Markus Triska's message of "Mon, 13 Apr 2020 21:46:43 +0200") Message-ID: <8736973ubp.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) Markus Triska writes: > Please consider documenting this in the description of `yank'. Other > than that, I consider this issue resolved. Does this look okay? (modulo a fill-paragraph which I've held off on just to make the patch easier to read) --- i/lisp/simple.el +++ w/lisp/simple.el @@ -5110,7 +5110,9 @@ yank-pop (defun yank (&optional arg) "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. Put point +stretch of text most recently killed or yanked. Or text from the +system clipboard if that was modified more recently (see +`interprogram-paste-function'). Put point at the end, and set mark at the beginning without activating it. With just \\[universal-argument] as argument, put point at beginning, and mark at end. With argument N, reinsert the Nth most recent kill. From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Apr 2020 22:48:02 +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 To: Noam Postavsky , Markus Triska Cc: schwab@linux-m68k.org, 40375@debbugs.gnu.org Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158681802723332 (code B ref 40375); Mon, 13 Apr 2020 22:48:02 +0000 Received: (at 40375) by debbugs.gnu.org; 13 Apr 2020 22:47:07 +0000 Received: from localhost ([127.0.0.1]:32805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO7r8-00064G-Um for submit@debbugs.gnu.org; Mon, 13 Apr 2020 18:47:07 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:56688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jO7r6-00063j-0f for 40375@debbugs.gnu.org; Mon, 13 Apr 2020 18:47:05 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03DMeGlr015744; Mon, 13 Apr 2020 22:46:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=+03JHCAyoplWxP20vHcRwwhfI4QLKfLuGmYqArsbzUc=; b=p4JgBJBmjti+OBH4eR0x58y8XRtQT6uJeeO1Yfvl/99eAdzJxna7kuFrBq0WzOGa9ve7 62gyXIGyKjrhyV9wJrftjow5ciRV8+en66V4FTKVXOnfWLTku1m4+M2J283NMKwHD5q4 DmmuC7EKPw6YTgJWVkrd7NMWy6ORpIEcREVkLpbLmnMq91YXsdiDSEWTCR4RlfmvaPtq 3hroctnR5aZvrjbRL1ph2gobfHsvBnYKmwQUPr+IEHl5SwJfIqhAivuGMcooKotWakyI oJqoMm8gVCg8y0SRY8B/DM12qxeZXEZDzQ1iXr6AwpV24EmUkmWQXg3QPsDYnih0wRE3 lg== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 30b5um191q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Apr 2020 22:46:57 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03DMh4P6188658; Mon, 13 Apr 2020 22:44:57 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 30cta89qmh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 13 Apr 2020 22:44:57 +0000 Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 03DMisRf018957; Mon, 13 Apr 2020 22:44:55 GMT MIME-Version: 1.0 Message-ID: Date: Mon, 13 Apr 2020 15:44:53 -0700 (PDT) From: Drew Adams References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> <87a73fw9hy.fsf@metalevel.at> <83o8rvi6ah.fsf@gnu.org> <87y2qzusjj.fsf@metalevel.at> <83mu7fi3g4.fsf@gnu.org> <877dyjb23g.fsf@metalevel.at> <8736973ubp.fsf@gmail.com> In-Reply-To: <8736973ubp.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4966.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9590 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 spamscore=0 adultscore=0 mlxscore=0 phishscore=0 mlxlogscore=842 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004130165 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9590 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 bulkscore=0 mlxscore=0 mlxlogscore=884 lowpriorityscore=0 impostorscore=0 adultscore=0 phishscore=0 spamscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004130164 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Does this look okay? (modulo a fill-paragraph which I've held off on > just to make the patch easier to read) >=20 > --- i/lisp/simple.el > +++ w/lisp/simple.el > @@ -5110,7 +5110,9 @@ yank-pop > (defun yank (&optional arg) > "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. Put point > +stretch of text most recently killed or yanked. Or text from the > +system clipboard if that was modified more recently (see > +`interprogram-paste-function'). Put point > at the end, and set mark at the beginning without activating it. > With just \\[universal-argument] as argument, put point at beginning, > and mark at end. > With argument N, reinsert the Nth most recent kill. Sorry for butting in here; just happened to see this in passing. Till now, it was OK to talk only about killing or yanking, as the source of= the text to be yanked ("the most recent kill"). But there's also copying text to the kill ring, as if it were killed. And = putting text on the kill ring is analogous to putting it onto the system cl= ipboard. In both cases you can get it to that saved-text place by killing/= cutting OR by copying. So to be parallel in the doc maybe we should say "text from the kill-ring o= r from the system clipboard if..." Users should have a good sense that the same kind of thing is involved: tex= t gets put on some save location (kill ring or clipboard), and then it gets= yanked from there. With your text above, it seems like only killing and y= anking is used for the kill ring, but killing or copying is used for the cl= ipboard. (If what I'm saying isn't clear to you, ignore it. It's not a big deal.) From unknown Fri Jun 20 07:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Apr 2020 05:40:02 +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 To: Noam Postavsky Cc: schwab@linux-m68k.org, 40375@debbugs.gnu.org, triska@metalevel.at Received: via spool by 40375-submit@debbugs.gnu.org id=B40375.158684278529982 (code B ref 40375); Tue, 14 Apr 2020 05:40:02 +0000 Received: (at 40375) by debbugs.gnu.org; 14 Apr 2020 05:39:45 +0000 Received: from localhost ([127.0.0.1]:33065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOEIT-0007nW-7f for submit@debbugs.gnu.org; Tue, 14 Apr 2020 01:39:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47623) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jOEIQ-0007nH-5x for 40375@debbugs.gnu.org; Tue, 14 Apr 2020 01:39:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jOEIJ-0001xs-US; Tue, 14 Apr 2020 01:39:35 -0400 Received: from [176.228.60.248] (port=1383 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jOEIJ-0003gd-6l; Tue, 14 Apr 2020 01:39:35 -0400 Date: Tue, 14 Apr 2020 08:39:15 +0300 Message-Id: <83k12iiq2k.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <8736973ubp.fsf@gmail.com> (message from Noam Postavsky on Mon, 13 Apr 2020 18:16:26 -0400) References: <851rp7nnyf.fsf@gmail.com> <87o8sbgkig.fsf@metalevel.at> <87r1wrjqdm.fsf@igel.home> <87a73fw9hy.fsf@metalevel.at> <83o8rvi6ah.fsf@gnu.org> <87y2qzusjj.fsf@metalevel.at> <83mu7fi3g4.fsf@gnu.org> <877dyjb23g.fsf@metalevel.at> <8736973ubp.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Noam Postavsky > Cc: Eli Zaretskii , 40375@debbugs.gnu.org, > schwab@linux-m68k.org > Date: Mon, 13 Apr 2020 18:16:26 -0400 > > Markus Triska writes: > > > Please consider documenting this in the description of `yank'. Other > > than that, I consider this issue resolved. > > Does this look okay? (modulo a fill-paragraph which I've held off on > just to make the patch easier to read) Thanks, I fixed this in a slightly different manner (as just mentioning interprogram-paste-function may not be accurate enough).