From: Michael Heerdegen <michael_heerdegen@web.de>
To: Alan Mackenzie <acm@muc.de>
Cc: "Mattias Engdegård" <mattiase@acm.org>,
"Eli Zaretskii" <eliz@gnu.org>,
61962@debbugs.gnu.org
Subject: bug#61962: 30.0.50; New trouble with symbols with positions
Date: Tue, 07 Mar 2023 01:29:21 +0100 [thread overview]
Message-ID: <87a60p4d5q.fsf@web.de> (raw)
In-Reply-To: <ZAXpFzXGj8li+53+@ACM> (Alan Mackenzie's message of "Mon, 6 Mar 2023 13:22:31 +0000")
Alan Mackenzie <acm@muc.de> writes:
> I think I now understand what's going on. It's all to do with stripping
> symbol positions in eval-and-compile forms. Before the patch of ~two
> weeks ago, the positions were stripped in e-and-c. After the patch,
> they weren't stripped.
>
> I think the correct thing to do is to strip the symbol positions in the
> `eval' part of eval-and-compile, but leave them alone in the `compile'
> part. This is actually quite tricky, since
> byte-run-strip-symbol-positions works destructively. So I need to copy
> the code first, and there is no suitable function to do this. copy-tree
> is close, but can't handle circular lists. So I will have to write a
> safe version of copy tree.
Sounds all plausible. I also don't have a better idea.
> In the mean time, could you try out the following patch which uses
> copy-tree as a first approximation. I think it fixes the problem,
> apart from the above.
Yes, looks good.
I wonder now if other cases also suffer from the problem. What happens
when I call `eval' in a macro expander (i.e. while generating the macro
expansion, not in the result of an expansion)? And how does
`cl-eval-when' behave (this is actually a special case of the first
question) ?
Thanks so far,
Michael.
next prev parent reply other threads:[~2023-03-07 0:29 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-04 16:18 bug#61962: 30.0.50; New trouble with symbols with positions Michael Heerdegen
2023-03-04 16:34 ` Eli Zaretskii
2023-03-04 21:39 ` Mattias Engdegård
2023-03-04 21:53 ` Michael Heerdegen
2023-03-05 16:04 ` Michael Heerdegen
2023-03-05 18:39 ` Alan Mackenzie
2023-03-05 19:41 ` Michael Heerdegen
2023-03-06 13:22 ` Alan Mackenzie
2023-03-07 0:29 ` Michael Heerdegen [this message]
2023-03-07 10:24 ` Alan Mackenzie
2023-03-07 13:13 ` Eli Zaretskii
2023-03-07 13:51 ` Robert Pluim
2023-03-07 15:46 ` Alan Mackenzie
2023-03-12 17:30 ` Mattias Engdegård
2023-03-12 20:42 ` Alan Mackenzie
2023-03-13 14:50 ` Eli Zaretskii
2023-03-14 12:31 ` Mattias Engdegård
2023-03-07 15:42 ` Alan Mackenzie
2023-03-07 15:15 ` Michael Heerdegen
2023-03-04 16:36 ` Eli Zaretskii
2023-03-04 16:47 ` Michael Heerdegen
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=87a60p4d5q.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=61962@debbugs.gnu.org \
--cc=acm@muc.de \
--cc=eliz@gnu.org \
--cc=mattiase@acm.org \
/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.