Skip to content

Commit c55e670

Browse files
author
Stephen Berman
committed
Fix last change to wid-edit.el
* lisp/wid-edit.el (widget-choose): Test for stringp instead of char-or-string-p, since substitute-command-keys should only apply to choice values that are strings. (Bug#64046, Message emacs-mirror#37)
1 parent c601148 commit c55e670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/wid-edit.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ in the key vector, as in the argument of `define-key'."
286286
(let ((items (mapc (lambda (x)
287287
(when (consp x)
288288
(dotimes (i (1- (length x)))
289-
(when (char-or-string-p (nth i x))
289+
(when (stringp (nth i x))
290290
(setcar (nthcdr i x)
291291
(substitute-command-keys
292292
(car (nthcdr i x))))))))

0 commit comments

Comments
 (0)