emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

describe-buffer-bindings and menu-items with :prefix


From: yyoncho
Subject: describe-buffer-bindings and menu-items with :prefix
Date: Wed, 15 Jan 2020 16:25:09 +0200

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]