diff --git a/embark.el b/embark.el index 61350d68..91edc432 100644 --- a/embark.el +++ b/embark.el @@ -1309,7 +1309,7 @@ first line of the documentation string; for keyboard macros use (cond ((or (stringp cmd) (vectorp cmd)) (key-description cmd)) ((stringp (car-safe cmd)) (car cmd)) - ((eq (car-safe cmd) 'menu-item) (eval (cadr cmd))) + ((eq (car-safe cmd) 'menu-item) (embark--command-name (caddr cmd))) ((keymapp cmd) (propertize (if (symbolp cmd) (format "+%s" cmd) "") 'face 'embark-keymap)) @@ -1371,11 +1371,9 @@ If NESTED is non-nil subkeymaps are not flattened." for cmd = (keymap--menu-item-binding def) unless (memq cmd '(nil embark-keymap-help negative-argument digit-argument)) + unless (string= "" name) collect (list name cmd key - (concat - (if (eq (car-safe def) 'menu-item) - "menu-item" - (key-description key)))))) + (concat (key-description key))))) (width (cl-loop for (_name _cmd _key desc) in commands maximize (length desc))) (default)