Hi,
I am trying to setup a set of shortcuts that depend on the current state and I am trying to do that using menu-item and prefix. Everything is working fine but I noticed that these bindings are not returned by describe-buffer-bindings, e. g.
(define-key global-map (kbd "C-c C-l r v") 'visible)
(define-key global-map (kbd "C-c C-l r V") '(menu-item "1" visible-too))
(define-key global-map (kbd "C-c C-l r X") '(menu-item "2" :filter (lambda (&rest _)
(lambda ()
(interactive)
(message "Called")))))
(describe-buffer-bindings (current-buffer) [3 12 114] t)
Results in:
Global Bindings Starting With C-c C-l r:
key binding
--- -------
C-c C-l r V visible-too
C-c C-l r v visible
Is there a way to force describe-buffer-bindings to return the menu-items with :prefix?
Thanks,
Ivan