GNU bug report logs - #14782
24.3.50; flyspell-mode garbles accents in terminal clients

Previous Next

Package: emacs;

Reported by: Stefano Zacchiroli <zack <at> upsilon.cc>

Date: Wed, 3 Jul 2013 22:20:02 UTC

Severity: normal

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Stefano Zacchiroli <zack <at> upsilon.cc>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 14782 <at> debbugs.gnu.org
Subject: bug#14782: 24.3.50; flyspell-mode garbles accents in terminal clients
Date: Fri, 05 Jul 2013 20:12:26 -0400
> then in a terminal:

>   $ emacsclient -t foo.txt
>   conférence                    # this works fine
>   M-x flyspell-mode
>   conférence                    # this gives garbled output

The problem was in sit-for.
I installed the patch below which should fix it,


        Stefan


=== modified file 'lisp/subr.el'
--- lisp/subr.el	2013-07-04 09:39:36 +0000
+++ lisp/subr.el	2013-07-06 00:06:02 +0000
@@ -2200,7 +2196,10 @@
     (or nodisp (redisplay)))
    (t
     (or nodisp (redisplay))
-    (let ((read (read-event nil nil seconds)))
+    ;; FIXME: we should not read-event here at all, because it's much too
+    ;; difficult to reliably "undo" a read-event by pushing it onto
+    ;; unread-command-events.
+    (let ((read (read-event nil t seconds)))
       (or (null read)
 	  (progn
 	    ;; If last command was a prefix arg, e.g. C-u, push this event onto





This bug report was last modified 12 years and 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.