From: Markus Triska <triska@metalevel.at>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 40375@debbugs.gnu.org
Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn
Date: Wed, 01 Apr 2020 19:53:43 +0200 [thread overview]
Message-ID: <87o8sbgkig.fsf@metalevel.at> (raw)
In-Reply-To: <851rp7nnyf.fsf@gmail.com> (Noam Postavsky's message of "Wed, 01 Apr 2020 12:57:28 -0400")
Noam Postavsky <npostavs@gmail.com> 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
next prev parent reply other threads:[~2020-04-01 17:53 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 [this message]
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
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=87o8sbgkig.fsf@metalevel.at \
--to=triska@metalevel.at \
--cc=40375@debbugs.gnu.org \
--cc=npostavs@gmail.com \
/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).