X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.el;h=82471b57dc9b4cabb7271e73b61e4a80a4ada3a9;hp=342ce6abe6c55bb49f709a1c716452ad4fb09561;hb=b20bc7028dbc413d270122d187e6afffbee008e5;hpb=1137ce11e11f031d30e6684cd56f0ec5654a3d97 diff --git a/notmuch.el b/notmuch.el index 342ce6ab..82471b57 100644 --- a/notmuch.el +++ b/notmuch.el @@ -1000,8 +1000,12 @@ For a mouse binding, return nil." (if (mouse-event-p key) nil (if (keymapp action) - (let ((substitute (apply-partially 'notmuch-substitute-one-command-key-with-prefix (notmuch-prefix-key-description key)))) - (mapconcat substitute (cdr action) "\n")) + (let ((substitute (apply-partially 'notmuch-substitute-one-command-key-with-prefix (notmuch-prefix-key-description key))) + (as-list)) + (map-keymap (lambda (a b) + (push (cons a b) as-list)) + action) + (mapconcat substitute as-list "\n")) (concat prefix (format-kbd-macro (vector key)) "\t" (notmuch-documentation-first-line action))))))