aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Burkett2021-06-29 22:35:58 -0400
committerJustin Burkett2021-06-29 22:35:58 -0400
commit7abe54fa1d4aa714d9414bc6877ef2124ce126fe (patch)
treee3de878b8153003ad240259a67c79029d483a690
parent4c27fc0c565cdda58270dae4024ad03a0017de43 (diff)
downloademacs-7abe54fa1d4aa714d9414bc6877ef2124ce126fe.tar.gz
emacs-7abe54fa1d4aa714d9414bc6877ef2124ce126fe.zip
Handle closure definition type
Fixes #311
-rw-r--r--which-key.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/which-key.el b/which-key.el
index 67b185f2c24..1213d14a833 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1790,11 +1790,15 @@ Requires `which-key-compute-remaps' to be non-nil"
1790 ((keymapp def) "prefix") 1790 ((keymapp def) "prefix")
1791 ((symbolp def) (which-key--compute-binding def)) 1791 ((symbolp def) (which-key--compute-binding def))
1792 ((eq 'lambda (car-safe def)) "lambda") 1792 ((eq 'lambda (car-safe def)) "lambda")
1793 ((eq 'closure (car-safe def)) "closure")
1793 ((stringp def) def) 1794 ((stringp def) def)
1794 ((vectorp def) (key-description def)) 1795 ((vectorp def) (key-description def))
1795 ((consp def) (concat (when (keymapp (cdr-safe def)) 1796 ((and (consp def)
1796 "group:") 1797 ;; looking for (STRING . DEFN)
1797 (car def))) 1798 (stringp (car def)))
1799 (concat (when (keymapp (cdr-safe def))
1800 "group:")
1801 (car def)))
1798 (t "unknown"))))) 1802 (t "unknown")))))
1799 (when (or (null filter) 1803 (when (or (null filter)
1800 (and (functionp filter) 1804 (and (functionp filter)