From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Opening file in UTF-8 mode automatically Date: Sat, 24 Nov 2007 19:26:15 +0100 Message-ID: <06401767-6F09-45CE-AEFC-ED4D011EB291@Web.DE> References: <78b46aa5-064f-4977-b425-b30a2f1866bb@a39g2000pre.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1195928810 26739 80.91.229.12 (24 Nov 2007 18:26:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2007 18:26:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: PT Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 24 19:26:57 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 1IvziO-0005Kt-6p for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2007 19:26:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ivzi9-0003eS-Kk for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Nov 2007 13:26:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ivzhs-0003bS-Fd for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 13:26:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ivzhq-0003am-NX for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 13:26:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ivzhq-0003aj-II for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 13:26:18 -0500 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ivzhq-00077I-7E for help-gnu-emacs@gnu.org; Sat, 24 Nov 2007 13:26:18 -0500 Original-Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id 4D97FB4DEB59; Sat, 24 Nov 2007 19:26:17 +0100 (CET) Original-Received: from [195.4.207.65] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #208) id 1Ivzhp-0001P4-00; Sat, 24 Nov 2007 19:26:17 +0100 In-Reply-To: <78b46aa5-064f-4977-b425-b30a2f1866bb@a39g2000pre.googlegroups.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+FTmdYUInbKhSnZk5vSRroFpWU6XKc4qWhSAvH 2j3b1/eCtnId6OYj1KE1fUCpYO6CR+yN0uvqpxMWWZmvMXCMIZ GTNN2n7jutFv3Oaxro4w== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:49478 Archived-At: Am 24.11.2007 um 17:38 schrieb spamfilteraccount: > I tried prefer-coding-system utf-8, but it didn't help. It might help to set LANG and LC_CTYPE to some UTF-8 value. Another =20 step would be to avoid set-language-environment. Both means =96 and =20 (prefer-coding-system 'utf-8) works fine for me. Finally, if the files' extension is quite unique, you could use =20 something like this to bind a file name extension to some particular =20 file encoding: (add-to-list 'file-coding-system-alist '("\\.tex\\'" . utf-8)) This can be done temporarily. If your files really use a particular mark at the beginning (EF BB =20 BF), you could augment magic-mode-alist, but this does not directly =20 set the file's encoding. -- Greetings Pete Ce qui =E9t=E9 compris n'existe plus. (Paul Eluard)