Skip to content

Commit

Permalink
mu4e-helpers: fix mu4e-keymap-set for older emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
djcb committed Mar 15, 2024
1 parent 4564db8 commit a6c78ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mu4e/mu4e-helpers.el
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,8 @@ shorter keys in some cases where there are multiple bindings."
Temporary version, from Emacs 29."
(when (fboundp 'key-valid-p) (cl-assert (key-valid-p key)))
(when (stringp definition)
(when (fboundp 'key-valid-p) (cl-assert (key-valid-p definition)))
(setq definition (key-parse definition)))
(when (or (not (fboundp 'key-valid-p)) (cl-assert (key-valid-p definition)))
(setq definition (key-parse definition))))
(define-key keymap (key-parse key) definition))

(provide 'mu4e-helpers)
Expand Down

0 comments on commit a6c78ab

Please sign in to comment.