unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jeremy Bryant via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: tpeplt <tpeplt@gmail.com>
Cc: 71761@debbugs.gnu.org
Subject: bug#71761: 29.3; Emacs-Lisp menu display is incorrect during Edebug
Date: Fri, 28 Jun 2024 19:10:05 +0100	[thread overview]
Message-ID: <87cyo1hrb6.fsf@jeremybryant.net> (raw)
In-Reply-To: <87ed8m9j4h.fsf@gmail.com> (tpeplt@gmail.com's message of "Mon, 24 Jun 2024 16:32:46 -0400")

tpeplt <tpeplt@gmail.com> 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 ‘Emacs-Lisp’ 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 ‘Emacs-Lisp’
> and ‘Emacs-Lisp’.  These two entries, in turn, are sub-menus
> whose contents are the correct menu items for ‘Emacs-Lisp’,
> namely, ‘Indent Line’, ‘Indent Region’, and so on.
>
>    After exiting the debugger, the menu items for the
> ‘Emacs-Lisp’ 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 ‘Emacs-Lisp’ to confirm
>       that it is correct.
>
>    6. Invoke the instrumented function to enter Edebug:
>
>       (new-fun t)
>
>    7. Check the menu listing for ‘Emacs-Lisp’ to see that it
>       now lists (only) two identical ‘Emacs-Lisp’ entries,
>       each of which is a sub-menu.  The sub-menus will list
>       the correct entries for ‘Emacs-Lisp’.
>
>    8. In the debugger, type ‘c’ to continue to complete the
>       debugging session.  Once it has exited, check the
>       ‘Emacs-Lisp’ menu item to confirm that it now has the
>       correct entries.  Each time that Edebug is entered,
>       the ‘Emacs-Lisp’ menu’s entries are two incorrect
>       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.





  reply	other threads:[~2024-06-28 18:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-24 20:32 bug#71761: 29.3; Emacs-Lisp menu display is incorrect during Edebug tpeplt
2024-06-28 18:10 ` Jeremy Bryant via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-06-29 11:05   ` Eli Zaretskii
2024-06-29 12:20     ` Jeremy Bryant via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-29 12:47       ` Eli Zaretskii
2024-06-29 22:04         ` Jeremy Bryant via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-30  4:12     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cyo1hrb6.fsf@jeremybryant.net \
    --to=bug-gnu-emacs@gnu.org \
    --cc=71761@debbugs.gnu.org \
    --cc=jb@jeremybryant.net \
    --cc=tpeplt@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).