From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Enno Fennema Newsgroups: gmane.emacs.bugs Subject: Coding system in compilation buffer Date: Tue, 04 Dec 2007 21:32:21 +0100 Message-ID: <4755B955.5080809@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 1196839468 25626 80.91.229.12 (5 Dec 2007 07:24:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2007 07:24:28 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 05 08:24:37 2007 Return-path: Envelope-to: geb-bug-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 1IzocX-0005qK-17 for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Dec 2007 08:24:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzocG-0005kp-Ar for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Dec 2007 02:24:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzeNH-0004Qd-JW for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2007 15:28:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzeNE-0004JO-8D for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2007 15:28:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzeNE-0004Ix-0p for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2007 15:28:08 -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 1IzeND-0000NF-Nc for bug-gnu-emacs@gnu.org; Tue, 04 Dec 2007 15:28:07 -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 1IzeNB-00051x-EO for ; Tue, 04 Dec 2007 21:28:05 +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-Mailman-Approved-At: Wed, 05 Dec 2007 02:23:19 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17118 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. According to the documentation compilation-process-setup-function is called with compilation-buffer bound. I think that variable is actually called outbuf in compile.el That would be a documentation bug, however minor; the rest is a question. I tried emacs initialization with: >> (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. I don't want to set a global utf-8 preference as normally I prefer latin-1, which works fine for a West-European (for years I worked with ASCII only). Does the above idea make sense, if so how do I make it work, or is there an alternative better approach? Regards, Enno Fennema