From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jens Schmidt" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66136: 29.1; byte-compiler reports "misplaced interactive spec" with empty fct in lexical environment Date: Thu, 21 Sep 2023 12:44:01 +0200 Message-ID: <58a3814205a241729c60ed277fa871b9@vodafonemail.de> Reply-To: "Jens Schmidt" Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3103"; mail-complaints-to="usenet@ciao.gmane.io" To: 66136@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 21 15:12:50 2023 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 1qjJU9-0000bf-3V for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Sep 2023 15:12:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjJTa-0006NQ-Q9; Thu, 21 Sep 2023 09:12:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJTE-0005yn-SB for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 09:11:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjJTE-000755-Iw for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 09:11:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjJTO-0004Pr-Aj for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 09:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Jens Schmidt" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2023 13:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66136 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.169530186716905 (code B ref -1); Thu, 21 Sep 2023 13:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Sep 2023 13:11:07 +0000 Original-Received: from localhost ([127.0.0.1]:32997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJSU-0004Oa-MG for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:11:07 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:35678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjJSP-0004NY-Ix for submit@debbugs.gnu.org; Thu, 21 Sep 2023 09:11:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJRz-0004zX-J6 for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 09:10:37 -0400 Original-Received: from mr6.vodafonemail.de ([145.253.228.166]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjJRv-0006kD-3f for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 09:10:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1695293043; bh=y/Mb+NJ9D1lEJAcz+w2EsVxO595TIordycrrsH5xhKM=; h=From:To:Message-ID:Date:Subject:Content-type:From; b=jsMZCLMalxwV7lDPJCv7/70BCCrsLc+QekKNoD/RsxEV9YqumqUbFcAJDAJueWr+D mVwfYeYVLf0dVYqXDd2XFLGUyfD8aBhK5coJH44dJH9JbMsMJS7rUBr+lduJFnEij7 aEmvwVQ6nMlPwwjpFJJqG83CV1p54LT5jRdj+Eqk= Original-Received: from mp103.fra-mediabeam.com (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr6.vodafonemail.de (Postfix) with ESMTPS id 4RrsTH5z8Bz1y2R for ; Thu, 21 Sep 2023 10:44:03 +0000 (UTC) Original-Received: from mailbackend01 (unknown [10.0.0.2]) by mp103.fra-mediabeam.com (Postfix) with ESMTP id 4RrsTH5FWmz8t5m for ; Thu, 21 Sep 2023 10:44:03 +0000 (UTC) Original-Received: from [193.16.224.36] by www.vodafonemail.de via HTTP; Thu, 21 Sep 2023 12:44:01 +0200 X-Priority: 3 X-purgate-type: clean X-purgate: clean X-purgate-size: 5995 X-purgate-ID: 155817::1695293043-924991CD-0A21657B/0/0 Received-SPF: pass client-ip=145.253.228.166; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr6.vodafonemail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270988 Archived-At: Write the following to a file foo=2Eel: -------------------- foo=2Eel -------------------- ;;; -*- lexical-binding: t -*- (defun delete-process@emacs-fix (&rest patch-args) "Allows interactive calls=2E" (interactive (list (completing-read "Delete process: " (mapcar (lambda (process) (list (process-name process))) (process-list)))))) -------------------- foo=2Eel -------------------- (This is used to advise function `delete-process' in my =2Eemacs=2E) Then start Emacs as "emacs -Q" and M-x byte-compile-file ~/foo=2Eel RET For me this results in two warnings: -------------------- *Compile-Log* -------------------- Compiling file /home/jschmidt/foo=2Eel at Thu Sep 21 12:34:05 2023 Entering directory =E2=80=98/home/jschmidt/=E2=80=99 In delete-process@emacs-fix: foo=2Eel:5:4: Warning: misplaced interactive spec: =E2=80=98(interactiv= e (list (completing-read Delete process: (mapcar #'(lambda (process) (list (process-name process))) (process-list)))))=E2=80=99 foo=2Eel:3:40: Warning: Unused lexical argument `patch-args' -------------------- *Compile-Log* -------------------- I'm OK with the latter, but I think the former is incorrect=2E The former warning goes away if any of the following is done: - the "lexical-binding: t" is removed from the file - `patch-args' is renamed to `_patch-args' - an explicit nil body is added to the function In GNU Emacs 29=2E1 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1=2E16=2E0, Xaw3d scroll bars) of 2023-08-30, modified by Debi= an built on x86-csail-01 Windowing system distributor 'The X=2EOrg Foundation', version 11=2E0=2E= 12101008 System Description: Debian GNU/Linux trixie/sid Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/libexec --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/29=2E1/site= -lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/29=2E1/site-lis= p:/usr/share/emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --with-native-compilation --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/libexec --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/29=2E1/site= -lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/29=2E1/site-lis= p:/usr/share/emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --with-native-compilation --with-x=3Dyes --with-x-toolkit=3Dlucid --with-toolkit-scroll-bars --without-gsettings 'CFLAGS=3D-g -O2 -ffile-prefix-map=3D/build/reproducible-path/emacs-29=2E1+1=3D=2E -fst= ack-protector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS= 2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIF= Y INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_COLLATE: POSIX value of $LC_TIME: POSIX value of $LANG: en_US=2EUTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 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=2E Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc606= 8 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddef= s comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv 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-eshado= w isearch easymenu timer select scroll-bar mouse jit-lock font-lock synta= x font-core term/tty-colors frame minibuffer nadvice seq simple cl-generi= c indonesian philippine 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 theme-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 dbusbind inotify lcms2 dynamic-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 76983 14037) (symbols 48 7141 0) (strings 32 20219 2411) (string-bytes 1 594205) (vectors 16 15313) (vector-slots 8 322958 19812) (floats 8 40 46) (intervals 56 304 0) (buffers 984 11))