mu4e: support prefix arguments with mu4e~native-def

Fixes #1611.
This commit is contained in:
Dirk-Jan C. Binnema 2020-03-09 20:25:15 +02:00
parent e19c6f0cae
commit f8774ff98c
1 changed files with 2 additions and 2 deletions

View File

@ -741,10 +741,10 @@ FUNC should be a function taking two arguments:
(defmacro mu4e~native-def (def)
"Definition DEF only available in 'native' mode."
`(lambda() (interactive)
`(lambda(prefix-argument) (interactive "P")
(if mu4e-view-use-gnus
(mu4e-warn "binding not supported with the gnus-based view")
(,def))))
(if prefix-argument (,def prefix-argument) (,def)))))
(defvar mu4e-view-mode-map nil
"Keymap for \"*mu4e-view*\" buffers.")