From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeremy Bryant via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71761: 29.3; Emacs-Lisp menu display is incorrect during Edebug Date: Fri, 28 Jun 2024 19:10:05 +0100 Message-ID: <87cyo1hrb6.fsf@jeremybryant.net> References: <87ed8m9j4h.fsf@gmail.com> Reply-To: Jeremy Bryant 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="23893"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71761@debbugs.gnu.org To: tpeplt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 28 20:11:33 2024 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 1sNG4I-0005ws-VL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Jun 2024 20:11:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNG3t-0001Ha-SB; Fri, 28 Jun 2024 14: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 1sNG3q-0001H6-A2 for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2024 14:11:03 -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 1sNG3p-0006gc-Pt for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2024 14:11:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sNG3p-0005o2-MP for bug-gnu-emacs@gnu.org; Fri, 28 Jun 2024 14:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jeremy Bryant Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Jun 2024 18:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71761 X-GNU-PR-Package: emacs Original-Received: via spool by 71761-submit@debbugs.gnu.org id=B71761.171959821922267 (code B ref 71761); Fri, 28 Jun 2024 18:11:01 +0000 Original-Received: (at 71761) by debbugs.gnu.org; 28 Jun 2024 18:10:19 +0000 Original-Received: from localhost ([127.0.0.1]:46329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNG39-0005n4-3y for submit@debbugs.gnu.org; Fri, 28 Jun 2024 14:10:19 -0400 Original-Received: from out-183.mta0.migadu.com ([91.218.175.183]:38347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sNG34-0005mk-RH for 71761@debbugs.gnu.org; Fri, 28 Jun 2024 14:10:17 -0400 X-Envelope-To: 71761@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net; s=key1; t=1719598206; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n8tg3pF2+Jp6oGH/E+rNvpsj8ULKI7RKM/h6jG69UUQ=; b=HoyawPLkfvk3ap9B3g6OiRAgku66fv8qgTWRW9ijVgOop98enA3RS+paOEMBgTcut3wpim 5JMx3VpwLND4PqRhONlHTzaIp7L5Ex2xquglT4PB+MQ8qkXt60/doHQjXyKlXOylcNGTzl 6Av+A1PVe7mXUUmKHrlfDNw8N3RmfqwHX41+GaUpz4wsq5QXTPV26XBtzZdXXeDNgt80X3 WYd08nFoxT4gfV0jzWcgv94EpnRZ0liaOdi/7zJYybVpZpbLBEvoJujWHcz3vfIbyJYJbv URdZc00Uhrm7iO6Vi6iP1KASv8qloeakEYnq2Pc2XS/UNms3+lRXb7OO50nNnA== X-Envelope-To: tpeplt@gmail.com X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <87ed8m9j4h.fsf@gmail.com> (tpeplt@gmail.com's message of "Mon, 24 Jun 2024 16:32:46 -0400") X-Migadu-Flow: FLOW_OUT 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:288081 Archived-At: tpeplt writes: > Emacs Maintainers, > > When a function has been instrumented for debugging with > Edebug and the debugger has entered the function for > stepping, the menu item =E2=80=98Emacs-Lisp=E2=80=99 does not list the > correct entries (which should be the same entries as they > were before entering the debugger) in its drop-down menu. > Instead, the drop-down menu lists two entries =E2=80=98Emacs-Lisp=E2=80=99 > and =E2=80=98Emacs-Lisp=E2=80=99. These two entries, in turn, are sub-me= nus > whose contents are the correct menu items for =E2=80=98Emacs-Lisp=E2=80= =99, > namely, =E2=80=98Indent Line=E2=80=99, =E2=80=98Indent Region=E2=80=99, a= nd so on. > > After exiting the debugger, the menu items for the > =E2=80=98Emacs-Lisp=E2=80=99 menu item are displayed correctly. > > Recipe for reproducing this menu-display error: > > 1. Start Emacs from a shell prompt with: $ emacs -Q > > 2. Create a new Emacs Lisp file with C-x C-f, say, > new-file.el > > 3. Create a simple Emacs Lisp function: > > (defun new-fun (name) > (if name 'some-name nil)) > > 4. Instrument the function with C-u M-C-x. > > 5. Check the menu listing for =E2=80=98Emacs-Lisp=E2=80=99 to confirm > that it is correct. > > 6. Invoke the instrumented function to enter Edebug: > > (new-fun t) > > 7. Check the menu listing for =E2=80=98Emacs-Lisp=E2=80=99 to see that= it > now lists (only) two identical =E2=80=98Emacs-Lisp=E2=80=99 entries, > each of which is a sub-menu. The sub-menus will list > the correct entries for =E2=80=98Emacs-Lisp=E2=80=99. > > 8. In the debugger, type =E2=80=98c=E2=80=99 to continue to complete t= he > debugging session. Once it has exited, check the > =E2=80=98Emacs-Lisp=E2=80=99 menu item to confirm that it now has t= he > correct entries. Each time that Edebug is entered, > the =E2=80=98Emacs-Lisp=E2=80=99 menu=E2=80=99s entries are two inc= orrect > sub-menus. > > Please let me know if anything above is unclear or if you are unable > to reproduce this problem. The following may help to narrow down the problem: In Emacs 29.4: I am able to reproduce the bug in Emacs GUI But in Emacs TTY (emacs -nw), the problem seems absent, the menu bar appears correct.