From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: tpeplt Newsgroups: gmane.emacs.bugs Subject: bug#71761: 29.3; Emacs-Lisp menu display is incorrect during Edebug Date: Mon, 24 Jun 2024 16:32:46 -0400 Message-ID: <87ed8m9j4h.fsf@gmail.com> 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="1173"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 71761@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 24 22:33:21 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 1sLqNN-00006Z-KM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jun 2024 22:33:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLqN5-0008FV-4v; Mon, 24 Jun 2024 16:33:03 -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 1sLqN3-0008FM-Fw for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 16:33:01 -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 1sLqN3-000627-7X for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 16:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLqN3-0005GO-UB for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 16:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: tpeplt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2024 20:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71761 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.171926117720217 (code B ref -1); Mon, 24 Jun 2024 20:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jun 2024 20:32:57 +0000 Original-Received: from localhost ([127.0.0.1]:35702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLqMz-0005G1-Bn for submit@debbugs.gnu.org; Mon, 24 Jun 2024 16:32:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLqMu-0005Fp-N1 for submit@debbugs.gnu.org; Mon, 24 Jun 2024 16:32:55 -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 1sLqMt-0008Ev-24 for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 16:32:51 -0400 Original-Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLqMr-0005wJ-FO for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 16:32:50 -0400 Original-Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-444c0d2d503so20567081cf.1 for ; Mon, 24 Jun 2024 13:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719261168; x=1719865968; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=aaOBErZa4JdOiz3vjyWqOOeOIdUM88cWdp1fcrkuTTk=; b=CkOR4BtRxqAgQwycj0zw3cFI1MkT8ac5Hlj3Ok8XK92psJRcYL/arrEJ1/NUkJ11JM bbGYA6NxBSmFeDh01CruZt7s0Wj9IkMGZv2mNeZ86xdNRG69GJxDdIuO/OJFKvwQTn8f xwepMWJsfgaUlQmklHcTVds8ZjzLelxD14nOFGm2coQhrQ23OM+HF/2a1mkCwS8lD/ZG EhrRKSJk2j2CiJ8pGf7yyB9KBydJKmahABBxSHaKzIR1I285lZp/mSPCMGlcxnni3JaL x1GI05H5zAhg64afeFaWt1VJYNH8JW17uFdgFRqcgRbZ6+WX0i2a7snMA4zVKg1Bs8x4 H2DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719261168; x=1719865968; h=content-transfer-encoding:mime-version:user-agent:message-id:date :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aaOBErZa4JdOiz3vjyWqOOeOIdUM88cWdp1fcrkuTTk=; b=CoTV7cdMl1UXvS4xWTbPkpvR8HY1e37B+RU7aV8yzFGA0ALHB4BS262D9x2Dg1I9zM wQFBy8LbtUIROl9MrxkG3RQMBLlz1JvpyTui6e4YoboaFUXY34C8wpJCcagTM/kARop3 fZXVy4ffOLM02NhhooGnue/8C4wJzX17bzPiAHn2mQV7pxn4VArL3uc4AiWwNNf7nJ15 L6xqiFzWWUFxbTTDRm0rx1mv/kmN8Rr0K45AXSL3U8c0m1i6m2j9sBi6SYaGauzvGjNP ksz1iFGNZe71DoIemMpJ3+Le242nWUgn5urjx3ofx68sMjsBrtyMewOcPs5cUC6zy486 a6Kg== X-Gm-Message-State: AOJu0YyFXB5ZITEIKQpIcxqemepQlTVte3oUpJX3NtaENXU5Hv0ZGrC+ unETRXrzevhRjicg0+hrPhLY0sFh95wMKsGH+DUd/eA9MbOl5U0rcPhyUw== X-Google-Smtp-Source: AGHT+IFr40641/r4MT40IjNAswVGtazcJITD9oS8SnDRwn/Oxs+CS16UlRJmT2LSOjSBe+AKe7QsDg== X-Received: by 2002:a05:622a:1aa1:b0:43e:3b2f:e2 with SMTP id d75a77b69052e-444d64f3c6bmr65799501cf.37.1719261167668; Mon, 24 Jun 2024 13:32:47 -0700 (PDT) Original-Received: from t530.local ([2600:8806:a801:3150:6232:a925:a650:ba8c]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-444e316673csm16166661cf.89.2024.06.24.13.32.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 13:32:47 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=tpeplt@gmail.com; helo=mail-qt1-x833.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:287858 Archived-At: 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-menus 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, and= 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 the debugging session. Once it has exited, check the =E2=80=98Emacs-Lisp=E2=80=99 menu item to confirm that it now has the correct entries. Each time that Edebug is entered, the =E2=80=98Emacs-Lisp=E2=80=99 menu=E2=80=99s entries are two incor= rect sub-menus. Please let me know if anything above is unclear or if you are unable to reproduce this problem. --=20