From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Enno Fennema Newsgroups: gmane.emacs.help Subject: Coding system in compilation buffer Date: Mon, 26 Nov 2007 10:36:32 +0100 Message-ID: <474A93A0.60308@tiscali.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196069695 13450 80.91.229.12 (26 Nov 2007 09:34:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2007 09:34:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 26 10:35:03 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IwaMo-0002ZK-NP for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Nov 2007 10:35:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwaMZ-0001Gq-LI for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Nov 2007 04:34:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwaMG-0001GG-Do for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 04:34:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwaMD-0001CC-NQ for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 04:34:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwaMD-0001Bs-G8 for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 04:34:25 -0500 Original-Received: from smtp-out0.tiscali.nl ([195.241.79.175]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IwaMD-0000hw-BK for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 04:34:25 -0500 Original-Received: from [82.170.14.150] (helo=[192.168.1.35]) by smtp-out0.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl) id 1IwaMA-00015B-LT for ; Mon, 26 Nov 2007 10:34:22 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.2) Gecko/20040906 X-Accept-Language: en-us, en X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49541 Archived-At: 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