all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: michael_heerdegen@web.de, 56773@debbugs.gnu.org
Subject: bug#56773: 29.0.50; (readablep UNREADABLE) causes strange things
Date: Wed, 27 Jul 2022 11:30:13 +0200	[thread overview]
Message-ID: <87y1wezyvu.fsf@gnus.org> (raw)
In-Reply-To: <87h7340zy1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 26 Jul 2022 15:24:22 +0200")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Yes -- look at the call sequence from prin1-to-string and down to where
> we're calling the function.  The buffer that was current when
> prin1-to-string was called is not available from print_vectorlike, as
> far as I can see.

That is -- there's two things that have to be fixed.  The first thing
(which I was talking about here) is that the current_buffer has to be
made available way down in print_vectorlike, so that we don't call the
callback from the " prin1" buffer, because that's really confusing.  I
think we can accomplish that by specbinding some variable in
PRINTPREPARE.

The other thing is that we have to ensure that the stuff in PRINTFINISH
is actually done when we have a non-local exit, and putting that stuff
in an unwind_protect should fix that.  I.e., PRINTPREPARE sets up the
unwind_protect, of course.

And when doing that, we might as well get rid of the macros altogether
and do this more traditionally via functions.

Does anybody see any obvious disadvantages to doing it this way?  I
guess it could potentially make calls to `prin1' (etc) slower, but I
don't know whether that'd be noticeable.







  reply	other threads:[~2022-07-27  9:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-26  3:42 bug#56773: 29.0.50; (readablep UNREADABLE) causes strange things Michael Heerdegen
2022-07-26 12:31 ` Lars Ingebrigtsen
2022-07-26 12:39   ` Eli Zaretskii
2022-07-26 12:44     ` Lars Ingebrigtsen
2022-07-26 13:12       ` Eli Zaretskii
2022-07-26 13:24         ` Lars Ingebrigtsen
2022-07-27  9:30           ` Lars Ingebrigtsen [this message]
2022-07-27  9:41       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-27  9:51         ` Lars Ingebrigtsen
2022-07-27  9:41 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-27  9:58   ` Lars Ingebrigtsen
2022-07-27 11:57     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-28  1:47       ` Michael Heerdegen
2022-07-28  2:53         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-28  9:48       ` Lars Ingebrigtsen
2022-07-28 10:44         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-28 10:46           ` Lars Ingebrigtsen
2022-07-28 11:06             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-28 11:09               ` Lars Ingebrigtsen
2022-07-28 11:21                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1wezyvu.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=56773@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.