GNU bug report logs -
#67455
Record source position, etc., in doc strings, and use this in *Help* and backtraces.
Previous Next
Full log
View this message in rfc822 format
Hello, Stefan.
On Wed, Mar 27, 2024 at 08:22:27 -0400, Stefan Monnier wrote:
A bit of context: back in March, you took exception to the extensive
hand expanded backquote forms in byte-run--posify-defining-form, on the
ground that such code was too awkward for maintenance. I insisted that
the function was needed by the macro defun. We ended up not agreeing.
[ .... ]
> The earlier the better, in theory, but not at any cost. Having to write
> all that code within the very restrictive sublanguage available before
> subr.el and backquote.el is a cost I don't think justifies it.
> If we *really* want that, then we should explore other avenues, such as
> keeping pre-macroexpanded versions of the files (for bootstrapping
> purposes) but generating those files from files where a more normal
> coding style can be used.
> [ Something similar to the ldefs-boot.el. ]
The solution now seems obvious: In loadup.el, we should load
backquote.el before byte-run.el, and rewrite all our hand expanded
backquotes in byte-run.el (including in byte-run--posify-defining-form)
as actual backquote forms.
backquote.el doesn't actually need anything in byte-run.el bar the macro
defun itself. It would be a simple job to replace each (defun
backquote-foo ...) in the file with (defalias 'backquote-foo #'(lambda
....)).
What do you think?
[ .... ]
> Stefan
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 1 year and 71 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.