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: non-ASCII characters in auto-save files Date: Mon, 25 Jun 2012 18:56:33 +0200 Message-ID: <0E124857-40EB-4DF1-B8EE-351347C2377C@Web.DE> References: <4FE85DA0.7080201@cnrs-orleans.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340643410 18715 80.91.229.3 (25 Jun 2012 16:56:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2012 16:56:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: grivet@cnrs-orleans.fr Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 25 18:56:49 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SjCam-00023d-7z for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jun 2012 18:56:48 +0200 Original-Received: from localhost ([::1]:56768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjCam-0007xO-1j for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jun 2012 12:56:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjCae-0007x5-EU for help-gnu-emacs@gnu.org; Mon, 25 Jun 2012 12:56:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjCaZ-00040O-PR for help-gnu-emacs@gnu.org; Mon, 25 Jun 2012 12:56:40 -0400 Original-Received: from mout.web.de ([212.227.15.4]:58623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjCaZ-000406-Fb for help-gnu-emacs@gnu.org; Mon, 25 Jun 2012 12:56:35 -0400 Original-Received: from sumac.fritz.box ([95.223.133.231]) by smtp.web.de (mrweb003) with ESMTPA (Nemesis) id 0MS29q-1SHFaV0amw-00Smt4; Mon, 25 Jun 2012 18:56:33 +0200 In-Reply-To: <4FE85DA0.7080201@cnrs-orleans.fr> X-Mailer: Apple Mail (2.1084) X-Provags-ID: V02:K0:uypjaDhydeue2rt7p+3ERbFO3U9rIZdsJIwm61toSL6 XVgDzfogdZUqLziTenMXTkJLdBKjaBt+3vY2sA7uywPKBzB/4f +O4uu3CzaVM/xhynMN+XmlNb1ioV0i91aFF/nv897Jge1f3VF7 VqcdEmfFyba6OYZepCUPP10chF7OfXEKHwFVlRo8YA4d8tehrv aSttCgli3+dijPWnykbVw== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.15.4 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85456 Archived-At: Am 25.06.2012 um 14:46 schrieb grivet: > I have two questions: > - Can Emacs be persuaded to to encode auto-save files in a more = useful manner ? > - Is there a systematic way to convert #myfile# to iso-latin-9 (or = iso-latin-1) code, other than painstakingly > searching and replacing offending chars ? I have one answer: use file-local variables! For example in the header: %%% -*- mode: LaTeX; coding: iso-latin-9-unix; -*- Or in the (AUCTeX) footer: %%% Local Variables: %%% mode: LaTeX %%% fill-column: 99999 %%% coding: iso-latin-9 %%% End: % In the header you can combine the coding line with a time-stamp line, = updated every time you save the file: %%% Time-stamp: <2012-01-15 16:41:38 pete>=20 With C-x RET c RET you can set an encoding to be used = when you read and open the auto-save file. You can use the same command = to set an encoding for saving the file. -- Greetings Pete There's no place like ~ =96 (UNIX Guru)