From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 14:03:51 2022 Received: (at submit) by debbugs.gnu.org; 28 Sep 2022 18:03:51 +0000 Received: from localhost ([127.0.0.1]:34564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odbPT-0007Bj-CX for submit@debbugs.gnu.org; Wed, 28 Sep 2022 14:03:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:39948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odbPR-0007Ba-9P for submit@debbugs.gnu.org; Wed, 28 Sep 2022 14:03:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odbPR-0003Ms-2F for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2022 14:03:49 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:33227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odbPO-00073F-Pg for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2022 14:03:48 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id B1C1CC0003 for ; Wed, 28 Sep 2022 18:03:42 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro Organization: LINKOV.NET Date: Wed, 28 Sep 2022 21:03:00 +0300 Message-ID: <86tu4r4bsb.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.198; envelope-from=juri@linkov.net; helo=relay6-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 0. emacs -Q 1. Type in the *scratch*: (keymap-set g 2. Then 'completion-at-point' with 'M-C-i'. Debugger entered--Lisp error: (wrong-number-of-arguments (4 . 4) 2) keymap-set--anon-cmacro((keymap-set elisp--witness--lisp) elisp--witness--lisp) apply(keymap-set--anon-cmacro (keymap-set elisp--witness--lisp) elisp--witness--lisp) macroexp--compiler-macro(keymap-set--anon-cmacro (keymap-set elisp--witness--lisp)) #f(compiled-function (form func) #)(((keymap-set elisp--witness--lisp)) keymap-set) macroexp--expand-all((keymap-set elisp--witness--lisp)) macroexpand-all((keymap-set elisp--witness--lisp)) elisp--local-variables() #f(compiled-function (string) #)(#("g" 0 1 (fontified t rear-nonsticky t))) #f(compiled-function (string pred action) #)(#("g" 0 1 (fontified t rear-nonsticky t)) nil nil) try-completion(#("g" 0 1 (fontified t rear-nonsticky t)) #f(compiled-function (string pred action) #) nil) #f(compiled-function (table) #)(#f(compiled-function (string pred action) #)) mapcar(#f(compiled-function (table) #) (#f(compiled-function (string pred action) #) #f(compiled-function (&rest args2) #))) #f(compiled-function (string pred action) #)(#("g" 0 1 (fontified t rear-nonsticky t)) nil nil) try-completion(#("g" 0 1 (fontified t rear-nonsticky t)) #f(compiled-function (string pred action) #) nil) completion-basic-try-completion(#("g" 0 1 (rear-nonsticky t fontified t)) #f(compiled-function (string pred action) #) nil 1) #f(compiled-function (style) #)(basic) completion--some(#f(compiled-function (style) #) (basic partial-completion emacs22)) completion--nth-completion(1 #("g" 0 1 (rear-nonsticky t fontified t)) #f(compiled-function (string pred action) #) nil 1 (metadata)) completion-try-completion(#("g" 0 1 (rear-nonsticky t fontified t)) #f(compiled-function (string pred action) #) nil 1 (metadata)) completion--do-completion(# 159) completion--in-region-1(# 159) #f(compiled-function (start end collection predicate) #)(# 159 #f(compiled-function (string pred action) #) nil) apply(#f(compiled-function (start end collection predicate) #) (# 159 #f(compiled-function (string pred action) #) nil)) #f(compiled-function (funs global args) #)(nil nil (# 159 #f(compiled-function (string pred action) #) nil)) completion--in-region(# 159 #f(compiled-function (string pred action) #) nil) completion-in-region(# 159 #f(compiled-function (string pred action) #) nil) completion-at-point() funcall-interactively(completion-at-point) command-execute(completion-at-point) From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 14:24:59 2022 Received: (at 58148) by debbugs.gnu.org; 28 Sep 2022 18:24:59 +0000 Received: from localhost ([127.0.0.1]:34600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odbjv-0007le-1n for submit@debbugs.gnu.org; Wed, 28 Sep 2022 14:24:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odbjs-0007lP-QF for 58148@debbugs.gnu.org; Wed, 28 Sep 2022 14:24:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7e5Mgr8huVTcVjMvySKEZmlQE2uAyWJHrhlgd1t8U/4=; b=Ld9DPSTtp5bHWWh/IltXKvesvr qYujHfA5wLgTtTmfl2APKmA4PDv2W6pgyM1WTfaXYLtJPxhRBx/bTXIwSiCRia8a6x+jc4rvlrCLh xjgkhdv9CYpNHZekM4oXQOs7jpj3SRIUc7NVDwNpgxKyXWiLomRnHjZJHat5xrfe4kF8=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odbjj-0006Gu-PD; Wed, 28 Sep 2022 20:24:49 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro In-Reply-To: <86tu4r4bsb.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 28 Sep 2022 21:03:00 +0300") References: <86tu4r4bsb.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEXr5NX9/fGypZ+S g31wS0SNWVBTMCwwHx////+KWAfPAAAAAWJLR0QIht6VegAAAAd0SU1FB+YJHBIYCIh0vxwAAAGN SURBVDjLddPNboMwDADgsEndlVD6AGUHzmjVOFcK6bkq7LxJ1LmuPyOvPzsEsCvV6qHkI9hJHKWU 1in+kkTjvzlSNT1lRVEopbYzJJq/t/yVoJ+AennfTc9zQlV8tOC933LAF62nAHAVhzqMDjTB/3DI /RK/S/JUpQyuEyhctC6HmML7vwUw1gMOYjjMJMpNAXpjjKX0iQQaH6HiK8/AjIDf2gvACU07wjeH Nc7o2jbAlcMGTNN1JpR145AH2PF6R1gRnLIAsawIPc1QlGNwewYllesqAhBQ+wEPpAmfAg4rHHV3 f7cER77AAc4G8xC4rQDb4BK7FpOLcrMeGhw/fT1uCQJN6KgljhzwPHAXu5bgIhru01p77oxbuiFC 3lusi4qSu4sn5TB9aKy77F1LZxvAS6ixLjtCIuBtoPYJUAnIoZ9gLyDDDYxwEZBStwNr6/lGHUKH Ug/fJJQhBcwLmWGz3B0JWr2O9yAuhN3a1APrH36dD9Qj00I41PG2XR5BxRhz6CfBZiT09jz+D81l 2y3pw6/UAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA5LTI4VDE4OjI0OjA4KzAwOjAw/sRY4AAA ACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOS0yOFQxODoyNDowOCswMDowMI+Z4FwAAAAASUVORK5C YII= X-Now-Playing: Grace Jones's _Living My Life_: "Unlimited Capacity For Love" Date: Wed, 28 Sep 2022 20:24:46 +0200 Message-ID: <8735cbxspd.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > 1. Type in the *scratch*: > > (keymap-set g > > 2. Then 'completion-at-point' with 'M-C-i'. > > Debugger entered--Lisp error: (wrong-number-of-arguments (4 . 4) 2) Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58148 Cc: 58148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > 1. Type in the *scratch*: > > (keymap-set g > > 2. Then 'completion-at-point' with 'M-C-i'. > > Debugger entered--Lisp error: (wrong-number-of-arguments (4 . 4) 2) I'm unable to reproduce the problem. Do you still see it after a "make bootstrap"? From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 28 15:35:45 2022 Received: (at 58148) by debbugs.gnu.org; 28 Sep 2022 19:35:45 +0000 Received: from localhost ([127.0.0.1]:34774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odcqP-0005da-G9 for submit@debbugs.gnu.org; Wed, 28 Sep 2022 15:35:45 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:48717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odcqL-0005dH-QW for 58148@debbugs.gnu.org; Wed, 28 Sep 2022 15:35:44 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 6156B40002; Wed, 28 Sep 2022 19:35:32 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro In-Reply-To: <8735cbxspd.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 28 Sep 2022 20:24:46 +0200") Organization: LINKOV.NET References: <86tu4r4bsb.fsf@mail.linkov.net> <8735cbxspd.fsf@gnus.org> Date: Wed, 28 Sep 2022 22:34:44 +0300 Message-ID: <86v8p72syz.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58148 Cc: 58148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> 1. Type in the *scratch*: >> >> (keymap-set g >> >> 2. Then 'completion-at-point' with 'M-C-i'. >> >> Debugger entered--Lisp error: (wrong-number-of-arguments (4 . 4) 2) > > I'm unable to reproduce the problem. Do you still see it after a "make > bootstrap"? Hmm, still fails after bootstrap in the latest master: Debugger entered--Lisp error: (wrong-number-of-arguments # 2) keymap-set--anon-cmacro((keymap-set elisp--witness--lisp) elisp--witness--lisp) In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2022-09-28 Repository revision: b6a163ba7cdf57eff5542b4cb6956780ebb2880f Repository branch: master From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 29 06:34:28 2022 Received: (at 58148) by debbugs.gnu.org; 29 Sep 2022 10:34:28 +0000 Received: from localhost ([127.0.0.1]:36106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odqs8-000883-5L for submit@debbugs.gnu.org; Thu, 29 Sep 2022 06:34:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:43992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odqs2-00087n-Sx for 58148@debbugs.gnu.org; Thu, 29 Sep 2022 06:34:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pVRAzZA22gUO5t3mvqudEL9mUn5v+dsPsVF32Uiq+aE=; b=TNu9v6Ul7yu6ZXS2F+LiZ7e4mS V4zANtBtw7G04HELDH0DhhVfTiRzQEsl38tiFiZw9kgaXocwU0yCSybINaubcQfeWuw25BB8lepuU iTVFLHLS53t32qdTID//q40vaIvJ7WwbTZ4tUwcKsu0cfLonAb0eNGVQyJsZRFh+oF+g=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1odqrt-000597-Nx; Thu, 29 Sep 2022 12:34:16 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro In-Reply-To: <86v8p72syz.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 28 Sep 2022 22:34:44 +0300") References: <86tu4r4bsb.fsf@mail.linkov.net> <8735cbxspd.fsf@gnus.org> <86v8p72syz.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEWZb3hlVl+/qKtM MzwkFhn///8fEXZMAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YJHQoaLsLGzc4AAAGuSURBVDjLrZNr kuMgDIQFzgHAcABZcwF7xAHioPufaVt+TZLZ/NiqVVXi4I9u9CBEiJDfIwnlv8ZnQB9A/n8ghRMU Xfz7NzDrWYHzsq/jAUpXAMQpOUFTtUX3eAFmzdYD7Ganwsw0/wYwsl7nopqmw+wArjBFziIDNMuT ogOoAy5a+gl869AbcosuaesFZhGpXWfCMyDzC3zjxa37fjxRa3AQxgHWwrUvlCmGpiNkhCkKuxPF MrMStU0IACwZnyhfD8k0oAczxwO4WCSNQqGarcJUNqvB/HC4ETIygxM80Uip9mAkylm4devYMnVC cWrtQRTlhhzqUtatJsqKwuwuLPE2EpUYvchqAMiv2SgcCzEl8SLZHBisXBINCn9LVHvZASLV2b7j 4Af7zVDS7bUH8lFLUUr11RPYYuWhhR1s63bJJm15A836UhJdhMr+E81Eh4TqCcbp2NDu3iPM8wD3 Q0vb1Igj22uQd4aZ4vQOfHgSpiM7v0VPgGlIGB1ull1VUfJBoKkbeLbSu58ReHg/A32VIH54by+g dcwT1+LrXdFswX8m/JR+WX2Ifwd/ABSkr20AjVmfAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA5 LTI5VDEwOjI2OjQ2KzAwOjAw2i+/hgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wOS0yOVQxMDoy Njo0NiswMDowMKtyBzoAAAAASUVORK5CYII= X-Now-Playing: New Order's _Power, Corruption & Lies_: "We All Stand" Date: Thu, 29 Sep 2022 12:34:13 +0200 Message-ID: <87wn9mii56.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > Hmm, still fails after bootstrap in the latest master: > > Debugger entered--Lisp error: (wrong-number-of-arguments # 2) > keymap-set--anon-cmacro((keymap-set elisp--wi [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58148 Cc: 58148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > Hmm, still fails after bootstrap in the latest master: > > Debugger entered--Lisp error: (wrong-number-of-arguments # 2) > keymap-set--anon-cmacro((keymap-set elisp--witness--lisp) elisp--witness--lisp) There was another report of something similar, but that seemed to have something to do with previously compiled packages, which is why I thought this might be a stale .elc problem. I'm wondering why I'm not seeing the issue then -- I tried a "make bootstrap" and then "emacs -Q" and the recipe, and didn't get any errors. > In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo > version 1.16.0, Xaw3d scroll bars) of 2022-09-28 > Repository revision: b6a163ba7cdf57eff5542b4cb6956780ebb2880f > Repository branch: master I've got: In GNU Emacs 29.0.50 (build 41, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-09-28 built on joga Repository revision: 1254d9a3ae89697b591343de2ddf55c5879bc937 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Ubuntu 22.04.1 LTS Could possibly a toolkit version make any difference here? That would be really weird. Hm... anybody have any ideas? From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 29 11:30:53 2022 Received: (at 58148) by debbugs.gnu.org; 29 Sep 2022 15:30:53 +0000 Received: from localhost ([127.0.0.1]:39335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odvUy-0000L2-VR for submit@debbugs.gnu.org; Thu, 29 Sep 2022 11:30:53 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:56705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odvUw-0000Ko-7g for 58148@debbugs.gnu.org; Thu, 29 Sep 2022 11:30:51 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id DAB38200007; Thu, 29 Sep 2022 15:30:42 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro In-Reply-To: <87wn9mii56.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 29 Sep 2022 12:34:13 +0200") Organization: LINKOV.NET References: <86tu4r4bsb.fsf@mail.linkov.net> <8735cbxspd.fsf@gnus.org> <86v8p72syz.fsf@mail.linkov.net> <87wn9mii56.fsf@gnus.org> Date: Thu, 29 Sep 2022 18:30:01 +0300 Message-ID: <861qru8ay3.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58148 Cc: 58148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> Hmm, still fails after bootstrap in the latest master: >> >> Debugger entered--Lisp error: (wrong-number-of-arguments # 2) >> keymap-set--anon-cmacro((keymap-set elisp--witness--lisp) elisp--witness--lisp) > > There was another report of something similar, but that seemed to have > something to do with previously compiled packages, which is why I > thought this might be a stale .elc problem. > > I'm wondering why I'm not seeing the issue then -- I tried a "make > bootstrap" and then "emacs -Q" and the recipe, and didn't get any errors. Sorry, I had an additional setting more than -Q: (setq debug-on-error t) I thought it's required to see errors in -Q, because without debug-on-error, the errors are hidden in *Messages*. And indeed in this case without debug-on-error *Messages* contains: Warning: Optimization failure for keymap-set: Handler: keymap-set--anon-cmacro (wrong-number-of-arguments # 2) Making completion list... From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 30 08:37:48 2022 Received: (at 58148) by debbugs.gnu.org; 30 Sep 2022 12:37:48 +0000 Received: from localhost ([127.0.0.1]:40711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeFH1-0001I0-Vy for submit@debbugs.gnu.org; Fri, 30 Sep 2022 08:37:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeFH0-0001Hn-3j for 58148@debbugs.gnu.org; Fri, 30 Sep 2022 08:37:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8lPgNQFZJdAW5a/Zj/gK0mYwwyXjBbYMVorLcwS5M/M=; b=dsQNipanU9d6jwPpfPAmxnWiGF q3OkxkEiotqdtVQAH6lw47farZqeasySQj0tijEK3CxbBTQccDEnHswlCR2GyBjdJM4or5UBiO6DM 6ZF57VaMWhbp/0fVDy7pNd11nYnrsgWFfnxmY8M1ukr2ApavyDbWJdd4hVbe/JhCt9L8=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oeFGr-000052-Ig; Fri, 30 Sep 2022 14:37:39 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro In-Reply-To: <861qru8ay3.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 29 Sep 2022 18:30:01 +0300") References: <86tu4r4bsb.fsf@mail.linkov.net> <8735cbxspd.fsf@gnus.org> <86v8p72syz.fsf@mail.linkov.net> <87wn9mii56.fsf@gnus.org> <861qru8ay3.fsf@mail.linkov.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWSXDdcNCe1jF7/ ///HAJSWAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YJHgweHHhFihYAAAGnSURBVCjPLZIxa5tBDIZ1 RleCJ125CxntkKHkV0hwB+4mmdOHu3Xo1F8RQ7J7cPYE2iW/svpCtT3opOdFHFRUFTz/hLUokYlS fwbAgNpZsV7hEJAL3xUk3esGFO+6xuAhM0LpiYiUuXIskAzViHVdYCxUUxXYxWr7Mhe6JLlP0emF Ol7zeFil4xV+ZJAAQpBnxgB9jGWg3fAJMn9mqwkTeBRQzEjdQQlYezzrt8ePv//hNvPvj5d4lgCS Ttq+/cmfM2ZC27ZzRySIVHrT0J0GAauweQDAASZJt9XDbPDaYSiRu6pBmqnr8c09C4d04lzOw1EA Gh/bXPbDiRiyjObHvXutBcQ8+QyphHTY7O6bFRi8LP3YNs1r6ZFtmZt237woQrhGbbvsVTmCqsDT +/DODC9Wy/bj3f2mh3S2dNjV5idEyN9VcvJVmiBr9QeVhtoSLMZtL5rbiQRuXXqZMno9n6DVyyyO Nvc5QGcmW8p8qgrl5EVsQb2igrJksdui568FVCSVXM3qRcCGqmOd0yKbOceFx+TSXyA3KUwaB/X4 B5pNpEy2/Osf9DFx6iw7CogAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDktMzBUMTI6MzA6Mjgr MDA6MDC6bhINAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA5LTMwVDEyOjMwOjI4KzAwOjAwyzOq sQAAAABJRU5ErkJggg== X-Now-Playing: RS =?utf-8?B?UHJvZHXDp8O1ZXMncw==?= _L'Esprit de Nyege 2020_: "Ansiedade" Date: Fri, 30 Sep 2022 14:37:37 +0200 Message-ID: <87pmfd6nse.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov writes: > Sorry, I had an additional setting more than -Q: > > (setq debug-on-error t) > > I thought it's required to see errors in -Q, because without > debug-on-error, the errors are hidden in *Messages*. A [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58148 Cc: 58148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Juri Linkov writes: > Sorry, I had an additional setting more than -Q: > > (setq debug-on-error t) > > I thought it's required to see errors in -Q, because without > debug-on-error, the errors are hidden in *Messages*. And > indeed in this case without debug-on-error *Messages* contains: > > Warning: Optimization failure for keymap-set: Handler: keymap-set--anon-cmacro > (wrong-number-of-arguments # 2) > Making completion list... Still not seeing the problem, unfortunately -- emacs -Q M-: (setq debug-on-error t) (keymap-set d `C-M-i' No errors, and nothing in *Messages*, with or without debug-on-error. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 01 15:23:54 2022 Received: (at 58148) by debbugs.gnu.org; 1 Oct 2022 19:23:54 +0000 Received: from localhost ([127.0.0.1]:45718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oei5a-0008CB-FA for submit@debbugs.gnu.org; Sat, 01 Oct 2022 15:23:54 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:59559) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oei5Y-0008Bk-Dz for 58148@debbugs.gnu.org; Sat, 01 Oct 2022 15:23:52 -0400 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 9AB521BF203; Sat, 1 Oct 2022 19:23:45 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro In-Reply-To: <87pmfd6nse.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 30 Sep 2022 14:37:37 +0200") Organization: LINKOV.NET References: <86tu4r4bsb.fsf@mail.linkov.net> <8735cbxspd.fsf@gnus.org> <86v8p72syz.fsf@mail.linkov.net> <87wn9mii56.fsf@gnus.org> <861qru8ay3.fsf@mail.linkov.net> <87pmfd6nse.fsf@gnus.org> Date: Sat, 01 Oct 2022 22:17:18 +0300 Message-ID: <86mtafqrpd.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58148 Cc: 58148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> Warning: Optimization failure for keymap-set: Handler: keymap-set--anon-cmacro >> (wrong-number-of-arguments # 2) > > Still not seeing the problem, unfortunately -- > > emacs -Q > M-: (setq debug-on-error t) > > (keymap-set d `C-M-i' > > No errors, and nothing in *Messages*, with or without debug-on-error. I tried again to bootstrap with extra clean, but still the same error. We need someone to try this out too that could help to clarify where is the problem 🧐 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 10 04:26:19 2022 Received: (at control) by debbugs.gnu.org; 10 Oct 2022 08:26:19 +0000 Received: from localhost ([127.0.0.1]:45883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oho78-0006hD-UC for submit@debbugs.gnu.org; Mon, 10 Oct 2022 04:26:19 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oho76-0006gk-ST for control@debbugs.gnu.org; Mon, 10 Oct 2022 04:26:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=78NfEjJhCG5C5htsy4USmCtGKJS+e5oOQJdgS7oUTyk=; b=EadZ8LXl4oCDrivaMmDQo/zqpx Te5jZ2EVY08jx1iHo7QsPF8IRBg0jGNY89GOVhi3VWZacgpD6vNceY5RGZQ89Z3SwJ9I69BlUrMZj 0PvVCbobRVHuq/GG1WS6PpBDxIP8oBJ3PlffYpmcRanNLjgLp7zQhud0UQsZxwpNFF90=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oho6y-0006d4-Py for control@debbugs.gnu.org; Mon, 10 Oct 2022 10:26:11 +0200 Date: Mon, 10 Oct 2022 10:26:08 +0200 Message-Id: <87mta4nkyn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #58396 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: forcemerge 58396 58148 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) forcemerge 58396 58148 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 16 05:23:29 2022 Received: (at control) by debbugs.gnu.org; 16 Oct 2022 09:23:29 +0000 Received: from localhost ([127.0.0.1]:43373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojzrl-0006nj-Co for submit@debbugs.gnu.org; Sun, 16 Oct 2022 05:23:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojzrj-0006nE-6f for control@debbugs.gnu.org; Sun, 16 Oct 2022 05:23:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4+hFc3wnSa7NVIDeyjhk3WjPd+Ta4Cr7/oJCsSlIXYE=; b=UzHYl8Z9tFf0rH+wXKG2dmaQ7M u6uQRs1iW75YRh+DtgpZAc4ehHPCWOQ34cVZPdxhTkW0gUQXFR2b/hapuy0ntwnv1OYeBZm0I9BO/ qK+7wg8l9HnesEIPY3R+tRCd1OQ45xoSoz0GIjkL9YdvXH6VESySZvG+idmSRO6ObQUY=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojzrb-0004Vb-BH for control@debbugs.gnu.org; Sun, 16 Oct 2022 11:23:21 +0200 Date: Sun, 16 Oct 2022 11:23:18 +0200 Message-Id: <87tu44yveh.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #58557 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: forcemerge 58557 58148 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) forcemerge 58557 58148 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 14:45:45 2023 Received: (at 58148) by debbugs.gnu.org; 30 Sep 2023 18:45:45 +0000 Received: from localhost ([127.0.0.1]:59766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmeyG-0006tb-RU for submit@debbugs.gnu.org; Sat, 30 Sep 2023 14:45:45 -0400 Received: from mr4.vodafonemail.de ([145.253.228.164]:34702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmeyD-0006tJ-BP; Sat, 30 Sep 2023 14:45:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1696099520; bh=s2Fm6mHlorUUrhvqMr11m5CUk8CGP/7r3Y7Ah7R22Uk=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=WF6/5YA7d2zP9DlX7j33YKnO6kE73m7L1p6EcZzAWlS3s5Gdw+jj8M78NCYu6vkTA AEF0bgrLogqzndRSH0ACWCNdRlUeO1taAjPXHhuc1mvRGdBCfF+EPGlzfYnlng0hJg 8odNfG3e6733r8T6aNMnzDOj93WLbaVb6691JRbA= Received: from smtp.vodafone.de (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 mr4.vodafonemail.de (Postfix) with ESMTPS id 4RybkS0zPyz1y1Y; Sat, 30 Sep 2023 18:45:19 +0000 (UTC) Received: from sappc2 (port-83-236-57-119.dynamic.as20676.net [83.236.57.119]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4Rybk352hNzKm4H; Sat, 30 Sep 2023 18:44:56 +0000 (UTC) From: Jens Schmidt To: Stefan Monnier Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro References: <87o7uknkyx.fsf@gnus.org> <87fsfwnkl4.fsf@gnus.org> <87a663kxtz.fsf@gnus.org> <87czaygqqp.fsf@gnus.org> <87fsfte2hf.fsf@gnus.org> <87o7hod6dk.fsf@sappc2.fritz.box> <87v8bwip2h.fsf@sappc2.fritz.box> <87ttrcaqrm.fsf@sappc2.fritz.box> Date: Sat, 30 Sep 2023 20:44:55 +0200 In-Reply-To: (Stefan Monnier's message of "Sat, 30 Sep 2023 09:56:09 -0400") Message-ID: <877co7bivs.fsf_-_@sappc2.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-purgate-type: clean X-purgate: clean X-purgate-size: 7013 X-purgate-ID: 155817::1696099515-21FCD58E-EC5D5CB4/0/0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58148 Cc: German Pacenza , 58396@debbugs.gnu.org, Lars Ingebrigtsen , Eli Zaretskii , 58148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Stefan Monnier writes: >> + (let ((inhibit-message t) ;[1] >> + (warning-minimum-log-level :emergency)) >> (advice-add 'macroexpand :around macroexpand-advice) >> - (macroexpand-all sexp)) >> + (condition-case nil ;[3] >> + (macroexpand-all sexp) >> + (t sexp))) > > This `t` catches more than errors. Better replace it with `error`. Done plus Eli's comments from that other branch. >> - (let ((warning-minimum-log-level :emergency)) >> + (let ((inhibit-message t) ;[1] >> + (macroexp-inhibit-compiler-macros t) ;[2] >> + (warning-minimum-log-level :emergency)) >> (advice-add 'macroexpand-1 :around macroexpand-advice) >> - (macroexpand-all sexp elisp--local-macroenv)) >> + (condition-case nil ;[3] >> + (macroexpand-all sexp elisp--local-macroenv) >> + (t sexp))) > > What kind of errors are we expecting to catch with this > `condition-case`? The pre-existing advice is supposed to catch macro > expansion errors, and the new let-binding is supposed to catch > compiler-macro errors, so it seems to me there aren't any *expected* > errors left. If so, better remove this `condition-case` (or replace it > with `with-demoted-errors`) since all it has left to do is to hide any > real coding error that may come up and that we'd like to be told about. Done. FWIW, bug#60081 can also be merged into this one. (The other bugs that Zehao mentions in her/his last post are either merged already or typos/not related to this bug.) Technically, I should be able to merge that bug (after having been pointed to admin/notes/bugtracker), but is it OK for me (as a "plain user") to do so? Or should someone with more authority do that? Thanks. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-29-Silence-macro-expansion-during-completion-at-point.patch >From f4184086081b9cf94e87848d33b527c35f78ffdf Mon Sep 17 00:00:00 2001 From: Jens Schmidt Date: Tue, 26 Sep 2023 22:26:15 +0200 Subject: [PATCH] Silence macro expansion during completion at point To keep risk in the current release branch low, do not avoid compiler macros as suggested by Stefan in the bug, but rather suppress all errors. * lisp/progmodes/elisp-mode.el (elisp--local-variables): Silence messages. Suppress all errors during macro expansion. (Bug#58148) Do not merge to master. --- lisp/progmodes/elisp-mode.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index bd3916ce108..354d98c50dc 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -447,9 +447,14 @@ elisp--local-variables (error form)))) (sexp (unwind-protect - (let ((warning-minimum-log-level :emergency)) + ;; Silence any macro expansion errors when + ;; attempting completion at point (bug#58148). + (let ((inhibit-message t) + (warning-minimum-log-level :emergency)) (advice-add 'macroexpand :around macroexpand-advice) - (macroexpand-all sexp)) + (condition-case nil + (macroexpand-all sexp) + (error sexp))) (advice-remove 'macroexpand macroexpand-advice))) (vars (elisp--local-variables-1 nil sexp))) (delq nil -- 2.30.2 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-30-Silence-macro-expansion-during-completion-at-point.patch >From cc954764667e23ecc19ae9cc3fb89956a32289ce Mon Sep 17 00:00:00 2001 From: Jens Schmidt Date: Fri, 29 Sep 2023 22:04:43 +0200 Subject: [PATCH] Silence macro expansion during completion at point * lisp/emacs-lisp/macroexp.el (macroexp-inhibit-compiler-macros): Add variable. (macroexp--compiler-macro): Inspect that new variable and, if it is non-nil, return the input form unchanged. * lisp/progmodes/elisp-mode.el (elisp--local-variables): Silence messages. Avoid compiler macros. (Bug#58148) --- lisp/emacs-lisp/macroexp.el | 20 ++++++++++++++------ lisp/progmodes/elisp-mode.el | 6 +++++- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/lisp/emacs-lisp/macroexp.el b/lisp/emacs-lisp/macroexp.el index 3ef924a5c73..6eb670d6dc1 100644 --- a/lisp/emacs-lisp/macroexp.el +++ b/lisp/emacs-lisp/macroexp.el @@ -105,13 +105,21 @@ macroexp--all-clauses (macroexp--all-forms clause skip) clause))) +(defvar macroexp-inhibit-compiler-macros nil + "Inhibit application of compiler macros if non-nil.") + (defun macroexp--compiler-macro (handler form) - (condition-case-unless-debug err - (apply handler form (cdr form)) - (error - (message "Warning: Optimization failure for %S: Handler: %S\n%S" - (car form) handler err) - form))) + "Apply compiler macro HANDLER to FORM and return the result. +Unless `macroexp-inhibit-compiler-macros' is non-nil, in which +case return FORM unchanged." + (if macroexp-inhibit-compiler-macros + form + (condition-case-unless-debug err + (apply handler form (cdr form)) + (error + (message "Warning: Optimization failure for %S: Handler: %S\n%S" + (car form) handler err) + form)))) (defun macroexp--funcall-if-compiled (_form) "Pseudo function used internally by macroexp to delay warnings. diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 664299df288..ff90a744ea3 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -460,7 +460,11 @@ elisp--local-variables (message "Ignoring macroexpansion error: %S" err) form)))) (sexp (unwind-protect - (let ((warning-minimum-log-level :emergency)) + ;; Silence any macro expansion errors when + ;; attempting completion at point (bug#58148). + (let ((inhibit-message t) + (macroexp-inhibit-compiler-macros t) + (warning-minimum-log-level :emergency)) (advice-add 'macroexpand-1 :around macroexpand-advice) (macroexpand-all sexp elisp--local-macroenv)) (advice-remove 'macroexpand-1 macroexpand-advice))) -- 2.30.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 14:52:12 2023 Received: (at 58148) by debbugs.gnu.org; 30 Sep 2023 18:52:12 +0000 Received: from localhost ([127.0.0.1]:59783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmf4W-0007Az-8X for submit@debbugs.gnu.org; Sat, 30 Sep 2023 14:52:12 -0400 Received: from mr4.vodafonemail.de ([145.253.228.164]:36662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmf4T-0007Ah-PV; Sat, 30 Sep 2023 14:52:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1696099908; bh=PnTSORtmV5mnjx0TWe6/xc84i3Dg4JjnYMFPHv+Jcb0=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID:User-Agent: Content-Type:From; b=etB6RbORq+LMG/7ES9ye+CZGu3DneR77t4D1U0YExm0tGFqIxsgu27flX6+C8i6np Myo7z64JyekoyvucLwMSotxZD1mvEscapJCzbS5egKToWzlAIcgY9711UEavDl/QaQ sspluzr81M3eULJZ9+9CWhoM2No0jkz6rucF2F6Q= Received: from smtp.vodafone.de (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 mr4.vodafonemail.de (Postfix) with ESMTPS id 4Rybsw4qdwz1xwp; Sat, 30 Sep 2023 18:51:48 +0000 (UTC) Received: from sappc2 (port-83-236-57-119.dynamic.as20676.net [83.236.57.119]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4RybsX6nXQzKm4S; Sat, 30 Sep 2023 18:51:25 +0000 (UTC) From: Jens Schmidt To: Eli Zaretskii Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro References: <87o7uknkyx.fsf@gnus.org> <87fsfwnkl4.fsf@gnus.org> <87a663kxtz.fsf@gnus.org> <87czaygqqp.fsf@gnus.org> <87fsfte2hf.fsf@gnus.org> <87o7hod6dk.fsf@sappc2.fritz.box> <87v8bwip2h.fsf@sappc2.fritz.box> <87ttrcaqrm.fsf@sappc2.fritz.box> <83jzs7aga5.fsf@gnu.org> Date: Sat, 30 Sep 2023 20:51:25 +0200 In-Reply-To: <83jzs7aga5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 30 Sep 2023 17:26:26 +0300") Message-ID: <8734yvbiky.fsf_-_@sappc2.fritz.box> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-purgate-type: clean X-purgate: clean X-purgate-size: 780 X-purgate-ID: 155817::1696099904-597FC58E-F147A9F6/2/54773152652 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58148 Cc: germanp82@hotmail.com, 58396@debbugs.gnu.org, larsi@gnus.org, monnier@iro.umontreal.ca, 58148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: > Most of this comment should be in the commit log message, I think, and > the [1] and [3] markers should be replaced with text telling what that > does. Otherwise, the first patch is okay for the emacs-29 branch. Updated the patch accordingly and sent it on that other branch of this thread, please review. However, I removed the [1] and [3] markers without replacement: I don't think that there is much need to separately comment on a `condition-case' or a let-binding of `inhibit-message'. > Regarding the second patch: if Stefan Monnier and Stefan Kangas are > okay with it, so am I. Does that mean that I should explicitly draw Stefan Kangas' attention to this bug? Or would he notice somehow otherwise? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 30 14:55:57 2023 Received: (at 58148) by debbugs.gnu.org; 30 Sep 2023 18:55:57 +0000 Received: from localhost ([127.0.0.1]:59793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmf88-0007HL-N1 for submit@debbugs.gnu.org; Sat, 30 Sep 2023 14:55:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmf84-0007Gz-JO; Sat, 30 Sep 2023 14:55:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmf7i-0000w4-H3; Sat, 30 Sep 2023 14:55:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=O31bu/F65ihJrE1Zfkvo/O32bQQbZLSsEF9WBH7iXWA=; b=KrntFS52hx7V OQKLJ1FuY/thMm0+tQvPo1LDKabHSLL/OUhj0jJ0r2cofFXFHpEo8fJxG61PPiB1eyyWFqzzQrONw AjrJkqfmdVBipPf2EbSLe0RWNcX4YxKjqj60Ng/+NC0fLXZMgiFybeH1Qp04FHie6VpcZUZKvzcfG GYEnNWcF8qsDbIAlRLfNiciZGTArp7iCSX+HeZxbBvZkUAaAhNJ4OIcm8iga4EG4RiL/BtVaHEdli oWvQxT/WheMXE4DTFjJDpHRtW7R9pCZc6kiMkrT4xHzP80+ncoUtEAj1e01gN+Xaz3w4PiMEWUxdO jpTUn0cRRKy2pEUfDYJQCA==; Date: Sat, 30 Sep 2023 21:54:48 +0300 Message-Id: <834jjba3uv.fsf@gnu.org> From: Eli Zaretskii To: Jens Schmidt In-Reply-To: <8734yvbiky.fsf_-_@sappc2.fritz.box> (message from Jens Schmidt on Sat, 30 Sep 2023 20:51:25 +0200) Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro References: <87o7uknkyx.fsf@gnus.org> <87fsfwnkl4.fsf@gnus.org> <87a663kxtz.fsf@gnus.org> <87czaygqqp.fsf@gnus.org> <87fsfte2hf.fsf@gnus.org> <87o7hod6dk.fsf@sappc2.fritz.box> <87v8bwip2h.fsf@sappc2.fritz.box> <87ttrcaqrm.fsf@sappc2.fritz.box> <83jzs7aga5.fsf@gnu.org> <8734yvbiky.fsf_-_@sappc2.fritz.box> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58148 Cc: germanp82@hotmail.com, 58396@debbugs.gnu.org, larsi@gnus.org, monnier@iro.umontreal.ca, 58148@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jens Schmidt > Cc: 58148@debbugs.gnu.org, germanp82@hotmail.com, 58396@debbugs.gnu.org, > larsi@gnus.org, monnier@iro.umontreal.ca > Date: Sat, 30 Sep 2023 20:51:25 +0200 > > Eli Zaretskii writes: > > > Most of this comment should be in the commit log message, I think, and > > the [1] and [3] markers should be replaced with text telling what that > > does. Otherwise, the first patch is okay for the emacs-29 branch. > > Updated the patch accordingly and sent it on that other branch of this > thread, please review. It's fine, thanks. > > Regarding the second patch: if Stefan Monnier and Stefan Kangas are > > okay with it, so am I. > > Does that mean that I should explicitly draw Stefan Kangas' attention to > this bug? Or would he notice somehow otherwise? Just wait for him to chime in, which will happen soon enough. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 14:07:37 2023 Received: (at 58148-done) by debbugs.gnu.org; 5 Oct 2023 18:07:37 +0000 Received: from localhost ([127.0.0.1]:48474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoSl7-000896-DR for submit@debbugs.gnu.org; Thu, 05 Oct 2023 14:07:37 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:28330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoSl2-00088e-5P; Thu, 05 Oct 2023 14:07:36 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 65B3E807A4; Thu, 5 Oct 2023 14:07:08 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1696529227; bh=Vc6MoEhqlQukjMAuL4Xnf60ZEuga198Y++MvdmOkYz8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XEl5DZpTay2cBgtOV6JEKgt1RfoEYX2kXdnJIdSQr5fJMgnREZONFSTddbDJ9RBQi rtbUBlm96jeA1bExwSepNyS/gIGOTj1jobpluANCkeJk3rIW+1mvJUQEI05wirsK5W 9u22GSCgr/TlqqZHBFmc5w1UkZ3xWE3sRB7GhouYQ/XXBM2AuAxaTAj3xCvURqIJUg sPOnkOBqXB74PK24p/TIp9Q65sEA8RRX48oz8h71Z1Mz7ohGxjnU9bK4GvFsL18t2I Rudu+WoA3YILDJ7R83zDzM2/QNlfigjTu6JbcQEgap7rtkS4IZWXBTds8eSWczjLp+ owfcRcKWBdMuA== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2C45B804AD; Thu, 5 Oct 2023 14:07:07 -0400 (EDT) Received: from alfajor (unknown [23.233.149.155]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E908E1201CB; Thu, 5 Oct 2023 14:07:06 -0400 (EDT) From: Stefan Monnier To: Jens Schmidt Subject: Re: bug#58148: 29.0.50; Wrong number of arguments in keymap-set--anon-cmacro In-Reply-To: <877co7bivs.fsf_-_@sappc2.fritz.box> (Jens Schmidt's message of "Sat, 30 Sep 2023 20:44:55 +0200") Message-ID: References: <87o7uknkyx.fsf@gnus.org> <87fsfwnkl4.fsf@gnus.org> <87a663kxtz.fsf@gnus.org> <87czaygqqp.fsf@gnus.org> <87fsfte2hf.fsf@gnus.org> <87o7hod6dk.fsf@sappc2.fritz.box> <87v8bwip2h.fsf@sappc2.fritz.box> <87ttrcaqrm.fsf@sappc2.fritz.box> <877co7bivs.fsf_-_@sappc2.fritz.box> Date: Thu, 05 Oct 2023 14:07:01 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.006 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58148-done Cc: 58148-done@debbugs.gnu.org, German Pacenza , 60081-done@debbugs.gnu.org, 58396@debbugs.gnu.org, Lars Ingebrigtsen , Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> This `t` catches more than errors. Better replace it with `error`. > Done plus Eli's comments from that other branch. Thanks, pushed to `emacs-29`. > Done. Thanks, pushed to `master`. > FWIW, bug#60081 can also be merged into this one. (The other bugs that > Zehao mentions in her/his last post are either merged already or > typos/not related to this bug.) Indeed, hereby closing it as well. > Technically, I should be able to merge that bug (after having been > pointed to admin/notes/bugtracker), but is it OK for me (as a "plain > user") to do so? Yes (it's easy to undo, in any case if it proves to be a mistake). Stefan From unknown Thu Jun 19 16:24:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 03 Nov 2023 11:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator