1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(kmacro-bind-to-key): Avoid comparisons on function keys.

This commit is contained in:
Richard M. Stallman 2007-07-15 18:45:59 +00:00
parent 0e01e4afb9
commit be3eb6a622
2 changed files with 5 additions and 2 deletions

View file

@ -795,8 +795,9 @@ may be shaded by a local key binding."
ok cmd)
(when (= (length key-seq) 1)
(let ((ch (aref key-seq 0)))
(if (or (and (>= ch ?0) (<= ch ?9))
(and (>= ch ?A) (<= ch ?Z)))
(if (and (integerp ch)
(or (and (>= ch ?0) (<= ch ?9))
(and (>= ch ?A) (<= ch ?Z))))
(setq key-seq (concat "\C-x\C-k" key-seq)
ok t))))
(when (and (not (equal key-seq ""))