From: Brennan Vincent <brennan@umanwizard.com>
To: 56430@debbugs.gnu.org
Subject: bug#56430: [PATCH] fix broken `imenu--create-keymap` when an item is nil
Date: Wed, 6 Jul 2022 15:45:45 -0400 [thread overview]
Message-ID: <ddd41ef0-8b6a-5438-8d21-2a758ebe6c1c@umanwizard.com> (raw)
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/lisp/imenu.el b/lisp/imenu.el
index 040e373fb4..0a0931a647 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -464,7 +464,7 @@ imenu--create-keymap
`(keymap ,title
,@(mapcar
(lambda (item)
- `(,(intern (car item)) ,(car item)
+ `(,(and (car item) (intern (car item))) ,(car item)
,@(cond
((imenu--subalist-p item)
(imenu--create-keymap (car item) (cdr item) cmd))
--
2.34.1
next reply other threads:[~2022-07-06 19:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 19:45 Brennan Vincent [this message]
2022-07-07 8:59 ` bug#56430: [PATCH] fix broken `imenu--create-keymap` when an item is nil Lars Ingebrigtsen
2022-07-07 14:26 ` Brennan Vincent
2022-07-07 18:02 ` Lars Ingebrigtsen
2022-07-07 18:18 ` Brennan Vincent
2022-07-07 18:22 ` Lars Ingebrigtsen
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=ddd41ef0-8b6a-5438-8d21-2a758ebe6c1c@umanwizard.com \
--to=brennan@umanwizard.com \
--cc=56430@debbugs.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.