mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +00:00
(widget-choose): Avoid ugly error for function keys.
This commit is contained in:
parent
4bafae499a
commit
421be07036
@ -275,14 +275,15 @@ minibuffer."
|
||||
keys
|
||||
(char 0)
|
||||
(arg 1))
|
||||
(while (not (or (and (>= char ?0) (< char next-digit))
|
||||
(while (not (or (and (integerp char)
|
||||
(>= char ?0) (< char next-digit))
|
||||
(eq value 'keyboard-quit)))
|
||||
;; Unread a SPC to lead to our new menu.
|
||||
(setq unread-command-events (cons ?\s unread-command-events))
|
||||
(setq keys (read-key-sequence title))
|
||||
(setq value
|
||||
(lookup-key overriding-terminal-local-map keys t)
|
||||
char (string-to-char (substring keys 1)))
|
||||
char (aref keys 1))
|
||||
(cond ((eq value 'scroll-other-window)
|
||||
(let ((minibuffer-scroll-window
|
||||
(get-buffer-window buf)))
|
||||
|
Loading…
Reference in New Issue
Block a user