GNU bug report logs - #60093
29.0.60; imenu: Variables defined via defvar-keymap are not listed

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Thu, 15 Dec 2022 14:50:01 UTC

Severity: normal

Tags: patch

Merged with 64831

Found in version 29.0.60

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 60093 <at> debbugs.gnu.org
Subject: bug#60093: 29.0.60; imenu: Variables defined via defvar-keymap are not listed
Date: Mon, 19 Dec 2022 10:54:27 +0100

On 12/17/22 13:53, Eli Zaretskii wrote:
>> From: Daniel Mendler <mail <at> daniel-mendler.de>
>> Date: Thu, 15 Dec 2022 15:49:31 +0100
>>
>> Keymaps defined via `defvar-keymap' are not available in the Imenu. It is
>> necessary to extend `imenu-generic-expression'.
> 
> Thanks.  Would you like to suggest a patch to fix this?

I don't have a patch ready. Currently I use the following line in my
configuration which also recognizes Embark keymaps. Would we want to
list keymaps as a separate Imenu category "Keymaps" or as "Variables"?

(add-to-list 'imenu-generic-expression '("Keymaps"
"^[^;]*(\\(?:embark-define-keymap\\|defvar-keymap\\)\\s-+\\(\\(?:\\sw\\|\\s_\\)+\\)"
1) 'append))))




This bug report was last modified 1 year and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.