all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: non-ASCII characters in auto-save files
Date: Tue, 26 Jun 2012 00:40:36 +0200	[thread overview]
Message-ID: <87fw9j582j.fsf@web.de> (raw)
In-Reply-To: <mailman.3451.1340643405.855.help-gnu-emacs@gnu.org> (Peter Dyballa's message of "Mon, 25 Jun 2012 18:56:33 +0200")

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> 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:
> 	%

I'm no expert here, but - that doesn't work for autosave files (try
it!).  Looking at the code, it seems that autosaving handles coding
specially.  File local variables are respected when finding the autosave
file, but it is saved with a different encoding then the base file.

But grivet: Why do you have to open those autosave files?  I think the
standard way to use them is via `recover-file' or `recover-session'.
You shouldn't use them directly.


Michael.



  parent reply	other threads:[~2012-06-25 22:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-25 12:46 non-ASCII characters in auto-save files grivet
2012-06-25 16:56 ` Peter Dyballa
     [not found] ` <mailman.3451.1340643405.855.help-gnu-emacs@gnu.org>
2012-06-25 22:40   ` Michael Heerdegen [this message]
2012-06-25 23:11     ` Peter Dyballa
     [not found] <mailman.3448.1340636607.855.help-gnu-emacs@gnu.org>
2012-06-25 23:21 ` Stefan Monnier
2012-06-26 10:13   ` grivet
2012-06-26 15:40     ` Eli Zaretskii
2012-06-27 11:52   ` Xah Lee
2012-06-27 16:44     ` Eli Zaretskii
     [not found]     ` <mailman.3571.1340815454.855.help-gnu-emacs@gnu.org>
2012-06-27 20:03       ` Xah Lee
2012-06-28  1:07         ` Stefan Monnier
2012-06-28  2:58           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fw9j582j.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.