summaryrefslogtreecommitdiff
path: root/test/lisp/subr-tests.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-10-18 07:37:08 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-10-18 07:37:08 +0200
commit595dcf88fd880a1c96fb7bb462ac53fedd2eb744 (patch)
tree52d075a16f121a6c5bc2359757ddca6cfe6b5fa8 /test/lisp/subr-tests.el
parent735086e440aa748072be547f04c8878ac3798723 (diff)
downloademacs-595dcf88fd880a1c96fb7bb462ac53fedd2eb744.tar.gz
Do kbd-valid-p prefix comparisons case-sensitively
* lisp/subr.el (kbd-valid-p): Compare case-sensitively.
Diffstat (limited to 'test/lisp/subr-tests.el')
-rw-r--r--test/lisp/subr-tests.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el
index 3e6a7a8bd88..238c9be1ab0 100644
--- a/test/lisp/subr-tests.el
+++ b/test/lisp/subr-tests.el
@@ -311,6 +311,7 @@
(should (kbd-valid-p "<mouse-1>"))
(should (kbd-valid-p "<Scroll_Lock>"))
+ (should (not (kbd-valid-p "c-x")))
(should (not (kbd-valid-p "C-xx")))
(should (not (kbd-valid-p "M-xx")))
(should (not (kbd-valid-p "M-x<TAB>"))))