[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Emacs Unicode support
> Since emacs takes so long to start up, I've started using emacsclient
> as my editor with mutt. So far the only way I've found to get the
> emacsclient session to work in UTF-8 is to put this line in my .emacs:
>
> (modify-coding-system-alist 'file "" 'utf-8)
>
> I had hoped that I could put "/tmp/mutt-" instead of "" to make this
> rule more specific, but nothing apart from "" seems to work. Can
> anyone explain this?
I've just tried this under Emacs 20.6, and the following works fine:
(modify-coding-system-alist 'file "mutt-" 'utf-8)
I suspect that the directory name may not be part of the string being
matched to determine the encoding.
Also, when experimenting with this, you need to realize that C-x #
causes a return from emacsclient and buries the buffer, but the file
remains loaded. If you call emacsclient again on the same file and
the file has not changed on disk, it is not reloaded, and therefore
any changes you made to the file-coding-system-alist are not being
used.
Otfried
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/