branch: externals/which-key
commit bf9ceab0bea07afd9a5a661d9e7a043cb96daf84
Author: Jeremy Bryant <[email protected]>
Commit: Justin Burkett <[email protected]>
; which-key.el: Display mode in error message
* which-key.el (which-key-add-major-mode-key-based-replacements):
Display mode in error message
---
which-key.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/which-key.el b/which-key.el
index f2f86269fc..781fee9683 100644
--- a/which-key.el
+++ b/which-key.el
@@ -1085,7 +1085,7 @@ addition KEY-SEQUENCE REPLACEMENT pairs) to apply."
(declare (indent defun))
;; TODO: Make interactive
(when (not (symbolp mode))
- (error "MODE should be a symbol corresponding to a value of major-mode"))
+ (error "`%S' should be a symbol corresponding to a value of major-mode"
mode))
(let ((mode-alist
(or (cdr-safe (assq mode which-key-replacement-alist)) (list)))
(title-mode-alist