From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#55323: 29.0.50; Session-compiled interactive form gives (invalid-function #) Date: Tue, 10 May 2022 10:32:40 +0000 Message-ID: References: <25208.6664.823303.406026@orion.rgrjr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31877"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 55323@debbugs.gnu.org To: Bob Rogers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 10 12:41:18 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noNIs-00086y-4Q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 May 2022 12:41:18 +0200 Original-Received: from localhost ([::1]:37540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noNIq-00018W-Qd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 May 2022 06:41:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noNAt-0002LC-8H for bug-gnu-emacs@gnu.org; Tue, 10 May 2022 06:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38292) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noNAs-0003vP-Uy for bug-gnu-emacs@gnu.org; Tue, 10 May 2022 06:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noNAs-00054G-SM for bug-gnu-emacs@gnu.org; Tue, 10 May 2022 06:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 May 2022 10:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55323 X-GNU-PR-Package: emacs Original-Received: via spool by 55323-submit@debbugs.gnu.org id=B55323.165217877019453 (code B ref 55323); Tue, 10 May 2022 10:33:02 +0000 Original-Received: (at 55323) by debbugs.gnu.org; 10 May 2022 10:32:50 +0000 Original-Received: from localhost ([127.0.0.1]:60421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noNAg-00053g-3f for submit@debbugs.gnu.org; Tue, 10 May 2022 06:32:50 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:39124 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1noNAe-00053Q-LW for 55323@debbugs.gnu.org; Tue, 10 May 2022 06:32:49 -0400 Original-Received: (qmail 89345 invoked by uid 3782); 10 May 2022 10:32:41 -0000 Original-Received: from acm.muc.de (p4fe15691.dip0.t-ipconnect.de [79.225.86.145]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 10 May 2022 12:32:41 +0200 Original-Received: (qmail 5618 invoked by uid 1000); 10 May 2022 10:32:40 -0000 Content-Disposition: inline In-Reply-To: <25208.6664.823303.406026@orion.rgrjr.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231818 Archived-At: 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 #) > (# (#) ...) > 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 #: > byte code for align-highlight-rule: > doc: Highlight the whitespace which a given rule would have modified. ... > args: (# # # ...) > interactive: (# (#) ...) > 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).