From: Joel Reicher <joel.reicher@gmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: imenu rescan automatically
Date: Mon, 12 Aug 2024 20:50:29 +1000 [thread overview]
Message-ID: <86cymedngq.fsf@gmail.com> (raw)
In-Reply-To: <mP_aW9S2yfdpf66bLLiJsPhDIKCj5qv4QQghq4jWRf_4eBttF7UyyTCZvZeSJjPyQTDyBS1XHgDnhEvN9e8UOv7fGn6L0u4HKkTwKHaPfhM=@protonmail.com> (Heime's message of "Mon, 12 Aug 2024 10:21:39 +0000")
Heime <heimeborgia@protonmail.com> writes:
> On Monday, August 12th, 2024 at 10:13 PM, Joel Reicher
> <joel.reicher@gmail.com> wrote:
>
>> Heime heimeborgia@protonmail.com writes:
>>
>>> Yes, the function changes imenu-generic-expression and I want
>>> it to do a rescan so the user does not have to manually do it.
>>
>> So add a rescan call to your function?
>>
>> What am I missing?
>
> What is the function that achieves this ? Have not found a
> rescan function type name.
(imenu-flush-cache)
Flush the current imenu cache.
This forces a full rescan of the buffer to recreate the index
alist next time ‘imenu’ is invoked.
I think that will do what you want.
Cheers,
- Joel
next prev parent reply other threads:[~2024-08-12 10:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-11 16:51 imenu rescan automatically Heime
2024-08-11 23:41 ` Joel Reicher
2024-08-12 9:34 ` Heime
2024-08-12 10:13 ` Joel Reicher
2024-08-12 10:21 ` Heime
2024-08-12 10:50 ` Joel Reicher [this message]
2024-08-12 11:27 ` Heime
2024-08-12 11:57 ` Joel Reicher
2024-08-12 12:14 ` Heime
2024-08-12 12:20 ` Joel Reicher
2024-08-12 12:32 ` Christopher Dimech
2024-08-12 13:02 ` Joel Reicher
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=86cymedngq.fsf@gmail.com \
--to=joel.reicher@gmail.com \
--cc=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.