all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Enno Fennema <e.fennema@tiscali.nl>
To: help-gnu-emacs@gnu.org
Subject: Coding system in compilation buffer
Date: Mon, 26 Nov 2007 10:36:32 +0100	[thread overview]
Message-ID: <474A93A0.60308@tiscali.nl> (raw)

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

             reply	other threads:[~2007-11-26  9:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-26  9:36 Enno Fennema [this message]
2007-11-26 13:03 ` Coding system in compilation buffer Peter Dyballa
  -- strict thread matches above, loose matches on Subject: below --
2007-12-04 20:32 Enno Fennema
2007-12-05 18:12 ` Eli Zaretskii
2007-12-06 22:06   ` Enno Fennema

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=474A93A0.60308@tiscali.nl \
    --to=e.fennema@tiscali.nl \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.