diff options
| author | Richard M. Stallman | 2007-01-02 21:15:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-01-02 21:15:09 +0000 |
| commit | 421be070361daada7d3e9560144a3aa35af8bed9 (patch) | |
| tree | dcd83e4e4dda1a90f99878f3d67b2467a5685b17 | |
| parent | 4bafae499a6a73a04d2f23092ef34a7f1daafb56 (diff) | |
| download | emacs-421be070361daada7d3e9560144a3aa35af8bed9.tar.gz emacs-421be070361daada7d3e9560144a3aa35af8bed9.zip | |
(widget-choose): Avoid ugly error for function keys.
| -rw-r--r-- | lisp/wid-edit.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 7d572363e0f..935d2b7719d 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -275,14 +275,15 @@ minibuffer." | |||
| 275 | keys | 275 | keys |
| 276 | (char 0) | 276 | (char 0) |
| 277 | (arg 1)) | 277 | (arg 1)) |
| 278 | (while (not (or (and (>= char ?0) (< char next-digit)) | 278 | (while (not (or (and (integerp char) |
| 279 | (>= char ?0) (< char next-digit)) | ||
| 279 | (eq value 'keyboard-quit))) | 280 | (eq value 'keyboard-quit))) |
| 280 | ;; Unread a SPC to lead to our new menu. | 281 | ;; Unread a SPC to lead to our new menu. |
| 281 | (setq unread-command-events (cons ?\s unread-command-events)) | 282 | (setq unread-command-events (cons ?\s unread-command-events)) |
| 282 | (setq keys (read-key-sequence title)) | 283 | (setq keys (read-key-sequence title)) |
| 283 | (setq value | 284 | (setq value |
| 284 | (lookup-key overriding-terminal-local-map keys t) | 285 | (lookup-key overriding-terminal-local-map keys t) |
| 285 | char (string-to-char (substring keys 1))) | 286 | char (aref keys 1)) |
| 286 | (cond ((eq value 'scroll-other-window) | 287 | (cond ((eq value 'scroll-other-window) |
| 287 | (let ((minibuffer-scroll-window | 288 | (let ((minibuffer-scroll-window |
| 288 | (get-buffer-window buf))) | 289 | (get-buffer-window buf))) |