help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imenu rescan automatically


From: Joel Reicher
Subject: Re: imenu rescan automatically
Date: Mon, 12 Aug 2024 20:50:29 +1000
User-agent: Gnus/5.13 (Gnus v5.13)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]