mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix comparing command names in strokes.el (bug#40600)
* lisp/strokes.el (strokes-alphabetic-lessp): Simply call string-lessp because the cdr of the argument may be a string.
This commit is contained in:
parent
e105d01c95
commit
be77a68d52
1 changed files with 1 additions and 3 deletions
|
|
@ -1375,9 +1375,7 @@ If STROKES-MAP is not given, `strokes-global-map' will be used instead."
|
|||
|
||||
(defun strokes-alphabetic-lessp (stroke1 stroke2)
|
||||
"Return t if STROKE1's command name precedes STROKE2's in lexicographic order."
|
||||
(let ((command-name-1 (symbol-name (cdr stroke1)))
|
||||
(command-name-2 (symbol-name (cdr stroke2))))
|
||||
(string-lessp command-name-1 command-name-2)))
|
||||
(string-lessp (cdr stroke1) (cdr stroke2)))
|
||||
|
||||
(defvar strokes-mode-map
|
||||
(let ((map (make-sparse-keymap)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue