From: Eli Zaretskii <eliz@gnu.org>
To: Lin Sun <sunlin7@hotmail.com>
Cc: 74803-done@debbugs.gnu.org
Subject: bug#74803: 31.0.50; [PATCH] Fix bug that semantic did not restore imenu-create-index-function on exiting
Date: Sat, 14 Dec 2024 12:40:35 +0200 [thread overview]
Message-ID: <86jzc2v97g.fsf@gnu.org> (raw)
In-Reply-To: <TYCPR01MB1000493E60747FE15AB458E9AFB3E2@TYCPR01MB10004.jpnprd01.prod.outlook.com> (message from Lin Sun on Wed, 11 Dec 2024 22:30:02 +0000)
> From: Lin Sun <sunlin7@hotmail.com>
> Date: Wed, 11 Dec 2024 22:30:02 +0000
>
> The semantic minor mode changed the value of imenu-create-index-function on its startup, but does not restore the original value on its exiting.
>
> Here are the steps to reproduce the issue:
>
> 1. Start the emacs and open a python script, now the imenu-create-index-function will be the `python-imenu-create-index'
>
> $ emacs -nw -q ~/a.py
>
> 2. Turn-on the semantic by "M-x semantic-mode", then the imenu-create-index-function will be the `semantic-create-imenu-index'
>
> 3. Turn-off the semantic by "M-x semantic-mode", imenu-create-index-function is still the semantic one.
>
> This patch will store the original imenu-create-index-function before changing it, and restore the original value when turn-off the semantic-mode.
Thanks, installed on the master branch, and closing the bug.
next prev parent reply other threads:[~2024-12-14 10:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-11 22:30 bug#74803: 31.0.50; [PATCH] Fix bug that semantic did not restore imenu-create-index-function on exiting Lin Sun
2024-12-14 10:40 ` Eli Zaretskii [this message]
2024-12-14 17:01 ` Lin Sun
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86jzc2v97g.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=74803-done@debbugs.gnu.org \
--cc=sunlin7@hotmail.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.