From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.bugs Subject: bug#55323: 29.0.50; Session-compiled interactive form gives (invalid-function #) Date: Sun, 8 May 2022 15:29:12 -0400 Message-ID: <25208.6664.823303.406026@orion.rgrjr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15613"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie To: 55323@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 08 21:30:37 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 1nnmc1-0003sy-AP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 May 2022 21:30:37 +0200 Original-Received: from localhost ([::1]:43334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnmc0-0007oD-13 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 May 2022 15:30:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnmbS-0007mn-T7 for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 15:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnmbS-0002vP-Ip for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 15:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnmbS-0001JT-9e for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 15:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bob Rogers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 May 2022 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55323 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16520381784992 (code B ref -1); Sun, 08 May 2022 19:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 May 2022 19:29:38 +0000 Original-Received: from localhost ([127.0.0.1]:55240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnmar-0001IF-MC for submit@debbugs.gnu.org; Sun, 08 May 2022 15:29:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnmap-0001I7-Nq for submit@debbugs.gnu.org; Sun, 08 May 2022 15:29:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnmam-0007ip-Nf for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 15:29:21 -0400 Original-Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:45684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnmaj-0002tS-Nc for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 15:29:20 -0400 Original-Received: by mail-qk1-x733.google.com with SMTP id a76so9461367qkg.12 for ; Sun, 08 May 2022 12:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rgrjr-com.20210112.gappssmtp.com; s=20210112; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject; bh=GAAL1qFMvkO41hfk1nwYrao1C511gzzk/xhUM1B41Tg=; b=dHPSnzoCVoiTLGMurtlTNUaLxf8sDLalSYaxhpWTsM0DMb0Bca/BVZ01nbVwohHs/I pGBwJ9anY9cX1oeH/WaYP4eGsMIbIWi6AJcU/l9mt+KShk4AZ920br1bb+4QnEiOjXpi SSAgXhdPiFU0vBQ24s9UoMVs32ne27/bTrhJgrU7xB9m+LffXB0oCFENSUEaoNg8/WWT UFonkGMg5J58KGHh7PBiYDRUslHNWPAOsh+sZPQC0lT9WXL06SYloVdieKw+rfA48jxM GisQMndNxlTGWHjxVkP53ub9TxrjSplf3I2cOM+v5GCyQiN1PYnDW5Qi41sF3926itpN 7XEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject; bh=GAAL1qFMvkO41hfk1nwYrao1C511gzzk/xhUM1B41Tg=; b=0dX32wSdXtGw6c5N+n8nS6rUrJEHLftH9qVG1CZRSbSWfk9AzG9rwZw0LAsPgo5emx obVLKWf9f+EqXBmfh/CEjiw5dlg7cLjJOK8zcW8Chk33Zk0R8L5rKNKJane5b1NjZBNv z6nt7iRqn6wsORllRZzqhBvAUtq08EmY7bH9BLXEcs6d9WwY1YQifdY4a/M76TMAdUMI hSnSRJ5C0CFR1ZWkwML5m3UmirCldQKVuD8uKf+U2I8IQ96y8lCrsfm6QcQ0sNb0RsbD g0m+NTrjND1XMEh9G6YQ1BKi8EdxEdffuKzIAAdRPv7C8BDNgMXPpmKmfWuq6NCT5PF4 5I3A== X-Gm-Message-State: AOAM531P/7nAujDrpHypL9P7TWXt7ZFoH24RZHCR8GNtiiqcZTMd0/Wa 29A7D6u070GQvNK0ZjgvAy1G8olA4kqI2A== X-Google-Smtp-Source: ABdhPJzYvHlCcSPG2Kv85gW0FQu51G/qZ5dXgfHLK7AXisK4Rwl1FkmYa3FdQOnQpaSFh8LRVWwN8g== X-Received: by 2002:a05:620a:2a09:b0:6a0:924:a3b4 with SMTP id o9-20020a05620a2a0900b006a00924a3b4mr9718120qkp.548.1652038154396; Sun, 08 May 2022 12:29:14 -0700 (PDT) Original-Received: from orion.rgrjr.com ([2601:19c:4600:3270:1eb7:2cff:fea9:e38b]) by smtp.gmail.com with ESMTPSA id r184-20020ae9ddc1000000b0069fc13ce230sm5868138qkf.97.2022.05.08.12.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 12:29:14 -0700 (PDT) X-Mailer: VM 7.19 under Emacs 29.0.50 Received-SPF: none client-ip=2607:f8b0:4864:20::733; envelope-from=rogers@rgrjr.com; helo=mail-qk1-x733.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:231683 Archived-At: 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). 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, -- Bob Rogers http://www.rgrjr.com/ ------------------------------------------------------------------------ (require 'align) (setq debug-on-error t) (defun align-highlight-rule (beg end title &optional rules exclude-rules) "Highlight the whitespace which a given rule would have modified. BEG and END mark the extent of the region. TITLE identifies the rule that should be highlighted. If RULES or EXCLUDE-RULES is set to a list of rules (see `align-rules-list'), it can be used to override the default alignment rules that would have been used to identify the text to be colored." (interactive (list (region-beginning) (region-end) (completing-read "Title of rule to highlight: " (mapcar (lambda (rule) (list (symbol-name (car rule)))) (append (or align-mode-rules-list align-rules-list) (or align-mode-exclude-rules-list align-exclude-rules-list))) nil t))) (let ((ex-rule (assq (intern title) (or align-mode-exclude-rules-list align-exclude-rules-list))) face) (align-unhighlight-rule) (align-region beg end 'entire (or rules (if ex-rule (or exclude-rules align-mode-exclude-rules-list align-exclude-rules-list) (or align-mode-rules-list align-rules-list))) (unless ex-rule (or exclude-rules align-mode-exclude-rules-list align-exclude-rules-list)) (lambda (b e mode) (if (and mode (listp mode)) (if (equal (symbol-name (car mode)) title) (setq face (cons align-highlight-change-face align-highlight-nochange-face)) (setq face nil)) (when face (let ((overlay (make-overlay b e))) (setq align-highlight-overlays (cons overlay align-highlight-overlays)) (overlay-put overlay 'face (if mode (car face) (cdr face)))))))))) ------------------------------------------------------------------------ Configured using: 'configure --with-dbus=no --with-gsettings=no --with-gif=ifavailable --with-tiff=no --with-gnutls=yes --with-gconf=no' Configured features: ACL CAIRO FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cl-print debug backtrace help-mode find-func compile text-property-search comint ansi-color ring align vc-git diff-mode easy-mmode vc-dispatcher cl-loaddefs cl-lib seq gv subr-x byte-opt bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads inotify dynamic-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 63054 8598) (symbols 48 7628 1) (strings 32 21891 2878) (string-bytes 1 716772) (vectors 16 15096) (vector-slots 8 202859 11567) (floats 8 28 36) (intervals 56 345 0) (buffers 992 13))