This has been occasionally annoying me for months.
NOTE: This patch has been committed.
lisp/ChangeLog addition:
2006-06-25 Aidan Kehoe <kehoea(a)parhasard.net>
* cmdloop.el (read-quoted-char):
Don't error on non-character keys, accept them as terminating the
sequence.
XEmacs Trunk source patch:
Diff command: cvs -q diff -u
Files affected: lisp/cmdloop.el
Index: lisp/cmdloop.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/cmdloop.el,v
retrieving revision 1.21
diff -u -u -r1.21 cmdloop.el
--- lisp/cmdloop.el 2006/04/16 17:09:30 1.21
+++ lisp/cmdloop.el 2006/06/25 13:56:21
@@ -577,10 +577,9 @@
read-quoted-char-radix)))
(and prompt (display-message 'prompt (format "%s-" prompt)))
(setq event (next-command-event)
- char (or (event-to-character event)
- (signal 'error
- (list "key read cannot be inserted in a buffer"
- event))))
+ ;; If event-to-character fails, this is fine, we handle that
+ ;; with the (null char) cond branch below.
+ char (event-to-character event))
(if inhibit-quit (setq quit-flag nil)))
;; Translate TAB key into control-I ASCII character, and so on.
(and char
--
Santa Maradona, priez pour moi!