emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with viper-replace-char and Swedish characters on w32


From: Lennart Borgman
Subject: Re: Problem with viper-replace-char and Swedish characters on w32
Date: Wed, 29 Mar 2006 22:46:00 +0200
User-agent: Thunderbird 1.5 (Windows/20051201)

Stefan Monnier wrote:
This gives incorrect display of character if it is a Swedish character (like
o with two dots above) under the conditions I explained before (Swedish
keyboard, Local English). The code below gives the desired result:

   (let ((last-command-char (read-char "c:"))) (self-insert-command 1))

This will not obey keyboard-coding-system but
nonascii-translation-table instead.  So it will work OK sometimes, but is
not what you want.  But note that this is also what quoted-insert uses, so
it's no worse than the normal C-q.


        Stefan
Thanks, Stefan. Is something like this what should be done then:

   (let* ((ch (read-char "cs:")))
     (insert (decode-coding-string (char-to-string ch)
                                   (keyboard-coding-system))))

--lennart




reply via email to

[Prev in Thread] Current Thread [Next in Thread]