Hi,
I am using 21.5.2 CVS (main trunk). Is the following behavior
correct?
(int-to-char -51)
=> ?\^^M
If so, we should modify mule-packages/egg-its/egg.el not to use
negative numbers for `int-to-char'. Because of this behavior,
Egg often hangs up when I mis-type (e.g. C--) in the fence-mode.
Here is a patch for egg.el:
2001-08-21 Katsumi Yamaoka <yamaoka(a)jpl.org>
* egg.el (egg-read-event): Don't specify a negative number to
`int-to-char'.
--- mule-packages/egg-its/egg.el~ Tue May 8 11:18:52 2001
+++ mule-packages/egg-its/egg.el Tue Aug 21 09:29:36 2001
@@ -166,8 +166,12 @@
(if (eq 1 (event-modifier-bits event))
(setq ch
(if (characterp key)
- (or (int-to-char (- (char-to-int key) 96))
- (int-to-char (- (char-to-int key) 64)))
+ (progn
+ (setq key (char-to-int key))
+ (or (and (>= key 96)
+ (int-to-char (- key 96)))
+ (and (>= key 64)
+ (int-to-char (- key 64)))))
(event-to-character event)))
(setq unread-command-events (list event))))
(setq unread-command-events (list event)))