From: Alan Mackenzie <acm@muc.de>
To: Bob Rogers <rogers@rgrjr.com>
Cc: acm@muc.de, 55323@debbugs.gnu.org
Subject: bug#55323: 29.0.50; Session-compiled interactive form gives (invalid-function #<symbol list at 476>)
Date: Tue, 10 May 2022 10:32:40 +0000 [thread overview]
Message-ID: <Yno/SJNp0dRaVfAK@ACM> (raw)
In-Reply-To: <25208.6664.823303.406026@orion.rgrjr.com>
Hello, Bob.
On Sun, May 08, 2022 at 15:29:12 -0400, Bob Rogers wrote:
> In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
> of 2022-05-08 built on orion
> Repository revision: 278b18a460caf34e422847d10ac3f0b62bef4996
> Repository branch: master
> Windowing system distributor 'The X.Org Foundation', version 11.0.12003000
> System Description: openSUSE Leap 15.3
> The problem occurs with an evaluated "interactive" form in a defun
> that is compiled with compile-defun -- and it may have escaped notice
> until now because it doesn't seem to happen if the source is part of
> Emacs (i.e. is compiled in a file that git knows about).
> 1. emacs -Q
> 2. Find an elisp file with an interactive form that does not belong
> to an Emacs working copy. I used the align-highlight-rule snippet
> below, copied from lisp/align.el.
> 3. Evaluate the first two forms, and do "M-x compile-defun" to
> compile the third.
> 4. Attempt to invoke the command via "M-x align-highlight-rule RET".
> What you should see then is a backtrace that starts something like this:
> Debugger entered--Lisp error: (invalid-function #<symbol list at 476>)
> (#<symbol list at 476> (#<symbol region-beginning at 482>) ...)
> call-interactively(align-highlight-rule record nil)
> command-execute(align-highlight-rule record)
> Disassembly shows that the interactive form is not compiled, and the
> arglist is full of #<symbol X at Y>:
> byte code for align-highlight-rule:
> doc: Highlight the whitespace which a given rule would have modified. ...
> args: (#<symbol beg at 49> #<symbol end at 53> #<symbol title at 57> ...)
> interactive: (#<symbol list at 476> (#<symbol region-beginning at 482>) ...)
> 0 constant intern
> 1 varref title
> 2 call 1
> 3 varref align-mode-exclude-rules-list
> Disassembling the in-tree version, whether from "M-x compile-defun" or
> file compilation, shows neither of these problems (go figure).
Thanks for taking the trouble to report this bug. I can reproduce it
here. At a guess, the critical detail is having align-highlight-rule
in a different file's buffer on doing M-x compile-defun.
> And of course "M-x eval-defun" and "M-x byte-compile-file" continue
> to DTRT, so I am not in any hurry for a fix. TIA,
I hope to be able to fix this within a few days.
> -- Bob Rogers
> http://www.rgrjr.com/
[ .... ]
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2022-05-10 10:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-08 19:29 bug#55323: 29.0.50; Session-compiled interactive form gives (invalid-function #<symbol list at 476>) Bob Rogers
2022-05-10 10:32 ` Alan Mackenzie [this message]
2022-05-11 15:20 ` Alan Mackenzie
2022-05-12 22:45 ` Bob Rogers
2022-05-18 9:30 ` Alan Mackenzie
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=Yno/SJNp0dRaVfAK@ACM \
--to=acm@muc.de \
--cc=55323@debbugs.gnu.org \
--cc=rogers@rgrjr.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).