bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Coding system in compilation buffer


From: Eli Zaretskii
Subject: Re: Coding system in compilation buffer
Date: Wed, 05 Dec 2007 20:12:00 +0200

> Date: Tue, 04 Dec 2007 21:32:21 +0100
> From: Enno Fennema <address@hidden>
> 
> (defun compile-utf ()
>    "Set compilation buffer for UTF-8"
>    ( save-current-buffer
>      (set-buffer outbuf)
>      (set-buffer-process-coding-system "utf-8" "utf-8")))
> 
> (setq compilation-process-setup-function 'compile-utf)
> <<
> 
> That doesn't work either complaining that there is no process yet.

You need to bind coding-system-for-read to utf-8 prior to invoking the
compilation.  Try it interactively with

  C-x RET c utf-8 RET M-x compile RET ...

and if it does what you want, define a function that binds
coding-system-for-read and then invokes compile.




reply via email to

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