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: Chars escape-quoted in RMAIL files saved from gnus Date: Mon, 28 Apr 2008 10:38:50 +0200 Message-ID: <6C297B32-8DFF-4AE7-8A2A-E8FFC7E066DA@Web.DE> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209371979 1379 80.91.229.12 (28 Apr 2008 08:39:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2008 08:39:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Scott Heftler Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 10:40:12 2008 connect(): Connection refused 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 1JqOu6-0007S0-SF for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2008 10:40:07 +0200 Original-Received: from localhost ([127.0.0.1]:41190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqOtO-0000cC-5b for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2008 04:39:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JqOt2-0000ak-Ld for help-gnu-emacs@gnu.org; Mon, 28 Apr 2008 04:39:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JqOt0-0000YW-Cb for help-gnu-emacs@gnu.org; Mon, 28 Apr 2008 04:38:59 -0400 Original-Received: from [199.232.76.173] (port=45642 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JqOt0-0000YE-5E for help-gnu-emacs@gnu.org; Mon, 28 Apr 2008 04:38:58 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JqOsz-00035U-Pp for help-gnu-emacs@gnu.org; Mon, 28 Apr 2008 04:38:57 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id D5225D8C0461; Mon, 28 Apr 2008 10:38:52 +0200 (CEST) Original-Received: from [195.4.206.109] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1JqOsu-00082H-00; Mon, 28 Apr 2008 10:38:52 +0200 In-Reply-To: X-Mailer: Apple Mail (2.753) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+AyzD+nzt7fc0vQOokETXwVW/nN5O1F+53ugx1 CaGbjGh3tU9a4Ea37Z45Z2cVMntAyqKCdJM3zdkAR9tOuywxLr WSgYwkMtSdYDG8uJDRRw== 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:53589 Archived-At: Am 28.04.2008 um 01:30 schrieb Scott Heftler: > You'd think that, when emacs encounters these \205s, it would KNOW to > pick windows-1252. But it doesn't. Is there no way to AUTOMATE > emacs' pick of coding system? It's possible to use (file) local variables. In the file's header, first line I think, something like ;; -*- mode: Emacs-Lisp; coding: utf-8; -*- or at the file's end %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% coding: utf-8-unix %%% TeX-command-default: "XeLaTeX" %%% End: you can set a few parameters of operation. Depending on which file type(s) is easier to manipulate by these means you can leave out one encoding preference. Something like this might also work (I think I once had this active): ;;(setq file-coding-system-alist ;; (append ;; '(("\\.tex\\'" iso-latin-9-unix . iso-latin-9-unix)) ;; file-coding-system-alist)) ;(modify-coding-system-alist 'file "\\.tex\\'" 'iso-latin-9-unix) Or you can decide to reduce the number of encodings you use. Sometimes less pluralism can be more. -- Greetings Pete Know thyself. Need help, call GOOGLE.