all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#56430: [PATCH] fix broken `imenu--create-keymap` when an item is nil
@ 2022-07-06 19:45 Brennan Vincent
  2022-07-07  8:59 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Brennan Vincent @ 2022-07-06 19:45 UTC (permalink / raw)
  To: 56430

---
 lisp/imenu.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --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





^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-07 18:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-06 19:45 bug#56430: [PATCH] fix broken `imenu--create-keymap` when an item is nil Brennan Vincent
2022-07-07  8:59 ` 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

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.