From unknown Fri Jun 20 07:14:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49953 <49953@debbugs.gnu.org> To: bug#49953 <49953@debbugs.gnu.org> Subject: Status: 28.0.50; tmm is broken on compiled menus Reply-To: bug#49953 <49953@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:14:21 +0000 retitle 49953 28.0.50; tmm is broken on compiled menus reassign 49953 emacs submitter 49953 Juri Linkov severity 49953 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 03:23:10 2021 Received: (at submit) by debbugs.gnu.org; 9 Aug 2021 07:23:10 +0000 Received: from localhost ([127.0.0.1]:55595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCzcs-0004J8-Fh for submit@debbugs.gnu.org; Mon, 09 Aug 2021 03:23:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:53046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCzcp-0004Ig-9s for submit@debbugs.gnu.org; Mon, 09 Aug 2021 03:23:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCzcp-0004Ar-2L for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 03:23:07 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:56203) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCzcn-0006vo-Oo for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 03:23:06 -0400 Received: (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 2DAEC1C0012 for ; Mon, 9 Aug 2021 07:23:03 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: 28.0.50; tmm is broken on compiled menus Organization: LINKOV.NET Date: Mon, 09 Aug 2021 10:12:28 +0300 Message-ID: <87im0fhz1f.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.197; envelope-from=juri@linkov.net; helo=relay5-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. Eval: (tmm-prompt (mouse-buffer-menu-keymap)) 2. Select a menu item with the mouse click from the *Completions* buffer 3. It fails with this backtrace: Debugger entered--Lisp error: (error "Empty menu reached") error("Empty menu reached") tmm-prompt((keymap "Select Buffer" [("*scratch* * " . #f(compiled-function () (interactive nil) #) id 1mD5DM-0001LE-Hw for submit@debbugs.gnu.org; Mon, 09 Aug 2021 09:21:12 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD5DI-0001Kl-3i for 49953@debbugs.gnu.org; Mon, 09 Aug 2021 09:21:11 -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:In-Reply-To:Date: References: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=/h0rKwV2XTOeXL2E2ys7WYNIZL9EaG/SgaeHkBBwdPU=; b=BgQfL4PKXKaYoCu7N0ua11+F8k MINgrH55wkFBsRv2dd3RMNKigMj196Ckb46VfK5DmCXXEPyIZsHn4MErZYPD76JeB/O7b/t/NHzdI 7Gv7iFNyWbKUiJPmsYbsyq9tNfaFJnPjo7rvlG8mcPBo/55xNWtOXWqBdujIEq1S5v/g=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD5D8-0005dc-V2; Mon, 09 Aug 2021 15:21:01 +0200 From: Lars Ingebrigtsen To: Juri Linkov Subject: Re: bug#49953: 28.0.50; tmm is broken on compiled menus References: <87im0fhz1f.fsf@mail.linkov.net> Date: Mon, 09 Aug 2021 15:20:58 +0200 In-Reply-To: <87im0fhz1f.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 09 Aug 2021 10:12:28 +0300") Message-ID: <877dgu4uv9.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: > This regression began to occur after merging native-compilation. > It seems the problem is that tmm-get-keymap does very strange things: > > (cond ((if (listp elt) > (or (keymapp elt) (eq (car elt) [...] 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: 49953 Cc: 49953@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: > This regression began to occur after merging native-compilation. > It seems the problem is that tmm-get-keymap does very strange things: > > (cond ((if (listp elt) > (or (keymapp elt) (eq (car elt) 'lambda)) > (and (symbolp elt) (fboundp elt))) > > I don't know why it checks for 'lambda' and 'symbolp', > but such checks fail on a compiled function. Yeah, or why the listp at all... I think the correct test in all these cases are (or (keymapp elt) (functionp elt))? So I've now done that on the trunk, and that seems to make things work. But there may be something subtle here, so I guess we'll see... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 09:21:13 2021 Received: (at control) by debbugs.gnu.org; 9 Aug 2021 13:21:13 +0000 Received: from localhost ([127.0.0.1]:56344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD5DM-0001LG-VS for submit@debbugs.gnu.org; Mon, 09 Aug 2021 09:21:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD5DL-0001Kq-C5 for control@debbugs.gnu.org; Mon, 09 Aug 2021 09:21:12 -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=kyuJvQPglmN0lLSRSFwnPE+U/KEqOzlIS4j1Xpjuzyw=; b=R0/8/MukvocSbKH/hE8TpbFCWA BEKCKJFHw3Lzl3X5NIL4UFf7z6GNKCkkEQh3V4szpAqTRc73RP0Lhv4tba1WXP39MgoQ7pNufjOeL 8kOrngKMNlilPmchSrCtied0A0B9/CRdiQMFFgZmwh0egZCigpZkqN/zWGSjmjQ3xVi0=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD5DD-0005do-LL for control@debbugs.gnu.org; Mon, 09 Aug 2021 15:21:05 +0200 Date: Mon, 09 Aug 2021 15:21:03 +0200 Message-Id: <875ywe4uv4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49953 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: close 49953 28.1 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 (---) close 49953 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 13:09:55 2021 Received: (at 49953) by debbugs.gnu.org; 9 Aug 2021 17:09:55 +0000 Received: from localhost ([127.0.0.1]:57668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD8mg-0001KA-Qm for submit@debbugs.gnu.org; Mon, 09 Aug 2021 13:09:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD8md-0001Jw-Iq for 49953@debbugs.gnu.org; Mon, 09 Aug 2021 13:09:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49514) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mD8mX-0001rA-IK; Mon, 09 Aug 2021 13:09:45 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4754 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mD8mW-00031X-MX; Mon, 09 Aug 2021 13:09:45 -0400 Date: Mon, 09 Aug 2021 20:09:52 +0300 Message-Id: <83czqmh7dr.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen , Stefan Monnier In-Reply-To: <877dgu4uv9.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 09 Aug 2021 15:20:58 +0200) Subject: Re: bug#49953: 28.0.50; tmm is broken on compiled menus References: <87im0fhz1f.fsf@mail.linkov.net> <877dgu4uv9.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49953 Cc: 49953@debbugs.gnu.org, juri@linkov.net 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: Lars Ingebrigtsen > Date: Mon, 09 Aug 2021 15:20:58 +0200 > Cc: 49953@debbugs.gnu.org > > Juri Linkov writes: > > > This regression began to occur after merging native-compilation. > > It seems the problem is that tmm-get-keymap does very strange things: > > > > (cond ((if (listp elt) > > (or (keymapp elt) (eq (car elt) 'lambda)) > > (and (symbolp elt) (fboundp elt))) > > > > I don't know why it checks for 'lambda' and 'symbolp', > > but such checks fail on a compiled function. > > Yeah, or why the listp at all... I think the correct test in all these > cases are (or (keymapp elt) (functionp elt))? So I've now done that on > the trunk, and that seems to make things work. But there may be > something subtle here, so I guess we'll see... I have a vague recollection that at least some of those are used, so I brought Stefan on-board this discussion, in the hope that he could show us the light. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 14:23:21 2021 Received: (at 49953) by debbugs.gnu.org; 9 Aug 2021 18:23:21 +0000 Received: from localhost ([127.0.0.1]:57748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD9vl-00039o-Jp for submit@debbugs.gnu.org; Mon, 09 Aug 2021 14:23:21 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:60734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD9vh-00039X-UD for 49953@debbugs.gnu.org; Mon, 09 Aug 2021 14:23:19 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 60A628090A; Mon, 9 Aug 2021 14:23:12 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1FE3F80547; Mon, 9 Aug 2021 14:23:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1628533391; bh=HOCDPJAkrPg39cELFPZYMEf2Jx2UiWNM99JBh5bCyN0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TucBJtRUHoIXqiPdjDdpLPv2VWnVtKKwhuC+EOzqi06TQ1VnWANbECXg8uVxX1nA9 116YQPDmlV+7ANiZYLG53z38MMwTtvm7/QjdTvLe4hIjynOBWn0JavwqHRDIRzrukD 1CJ9Cze3qooPqXpVRM8YO7alHY/SBGTZVZGhYKlpTWW5NEsVrLB/BsTqYq833BG729 wfLEWk5zNrmdO/2j5bTg28udV4S7F4ic2EmfYpL18ZH6/f3ChfH45nDVB49qydFaQq AnvyYWaiZMuOxvkcqquXYjg/n9kgU04kcpeWXDCACgkUyp1Y73tdBjPaqlFeQYRBoE j/smVEoguk6Pg== Received: from alfajor (104-222-120-40.cpe.teksavvy.com [104.222.120.40]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 85B69120454; Mon, 9 Aug 2021 14:23:10 -0400 (EDT) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#49953: 28.0.50; tmm is broken on compiled menus Message-ID: References: <87im0fhz1f.fsf@mail.linkov.net> <877dgu4uv9.fsf@gnus.org> <83czqmh7dr.fsf@gnu.org> Date: Mon, 09 Aug 2021 14:23:09 -0400 In-Reply-To: <83czqmh7dr.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 09 Aug 2021 20:09:52 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) 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.063 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 X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49953 Cc: 49953@debbugs.gnu.org, Lars Ingebrigtsen , juri@linkov.net 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 regression began to occur after merging native-compilation. >> > It seems the problem is that tmm-get-keymap does very strange things: >> > >> > (cond ((if (listp elt) >> > (or (keymapp elt) (eq (car elt) 'lambda)) >> > (and (symbolp elt) (fboundp elt))) >> > >> > I don't know why it checks for 'lambda' and 'symbolp', >> > but such checks fail on a compiled function. >> >> Yeah, or why the listp at all... I think the correct test in all these >> cases are (or (keymapp elt) (functionp elt))? So I've now done that on >> the trunk, and that seems to make things work. But there may be >> something subtle here, so I guess we'll see... > > I have a vague recollection that at least some of those are used, so I > brought Stefan on-board this discussion, in the hope that he could > show us the light. Sorry, my lightbulb is currently out, but I agree that the above test seems to want to do (or (keymapp elt) (functionp elt)) just in a clumsy way. Stefan From unknown Fri Jun 20 07:14:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 07 Sep 2021 11:24:06 +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