* Coding system in compilation buffer
@ 2007-11-26 9:36 Enno Fennema
2007-11-26 13:03 ` Peter Dyballa
0 siblings, 1 reply; 2+ messages in thread
From: Enno Fennema @ 2007-11-26 9:36 UTC (permalink / raw)
To: help-gnu-emacs
I am using GNU Emacs 22.1.1 part of SuSE Linux 10.3 x86_64.
When doing a compile gcc writes its messages/warnings using utf-8 which
does not help readability when the buffers assumes latin-1.
Trying the get the compilation buffer to accept utf-8 I tried
>>
(defun compile-utf ()
"Set compilation buffer for UTF-8"
( save-current-buffer
(set-buffer compilation-buffer)
(set-buffer-process-coding-system "utf-8" "utf-8")))
(setq compilation-process-setup-function 'compile-utf)
<<
Now doing a compile appears to call the function compile-utf but then
moans that compilation buffer is a void variable.
That appears to contradict the description of
compilation-process-setup-function which says that compilation-buffer
should be bound by the time that function is called.
I am no elisp expert at all and appreciate help.
Does the above idea make sense or is there a better approach?
If the above, then how should I get it to work properly.
Regards,
Enno Fennema
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Coding system in compilation buffer
2007-11-26 9:36 Coding system in compilation buffer Enno Fennema
@ 2007-11-26 13:03 ` Peter Dyballa
0 siblings, 0 replies; 2+ messages in thread
From: Peter Dyballa @ 2007-11-26 13:03 UTC (permalink / raw)
To: Enno Fennema; +Cc: help-gnu-emacs
Am 26.11.2007 um 10:36 schrieb Enno Fennema:
> If the above, then how should I get it to work properly.
For me it works to have environment variables LANG and LC_CTYPE set
some UTF-8 value, not setting a language environment in my user init
file, but having
(prefer-coding-system 'utf-8)
Well, on Mac OS X ...
Check also by launching GNU Emacs with -Q, i.e. no customisation
neither from your system not from you. Last resort might be the
variable process-coding-system-alist. It *might* be successfully
manipulated with
(modify-coding-system-alist 'process "\\*compilation\\*\\'" 'utf-8)
--
Greetings
Pete
"engineer: a mechanism for converting caffeine into designs"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-26 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-26 9:36 Coding system in compilation buffer Enno Fennema
2007-11-26 13:03 ` Peter Dyballa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).