emacs-devel
[Top][All Lists]
Advanced

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

Re: Caching where-is-internal


From: Daniel Mendler
Subject: Re: Caching where-is-internal
Date: Mon, 24 May 2021 22:45:14 +0200

On 5/24/21 10:33 PM, Stefan Monnier wrote:
>> This makes sense. Thanks. Then we have to figure out why this spurious
>> cache flush happens.
> 
> The cache checks that the set of active keymaps is the same as
> last time `where-is-internal` was called.
> So if the set of active keymaps is different, the cache will be flushed.
> 
> Otherwise, the cache is also flushed by `set-keymap-parent` and
> `define-key` (search for `where_is_cache` in src/keymap.c for details).

Thanks. But it seems I cannot reproduce the problem anymore in
Selectrum. Maybe this was due to some temporary buffers used by
Selectrum back then, which have been removed for good now. Maybe this
has fixed this caching issue. My Vertico UI also does not have the
issue. I removed the binding cache from Marginalia.

Daniel



reply via email to

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