all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: grivet@cnrs-orleans.fr
Cc: help-gnu-emacs@gnu.org
Subject: Re: non-ASCII characters in auto-save files
Date: Mon, 25 Jun 2012 18:56:33 +0200	[thread overview]
Message-ID: <0E124857-40EB-4DF1-B8EE-351347C2377C@Web.DE> (raw)
In-Reply-To: <4FE85DA0.7080201@cnrs-orleans.fr>


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> 


With C-x RET c <encoding name> 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 ~
			– (UNIX Guru)




  reply	other threads:[~2012-06-25 16:56 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 [this message]
     [not found] ` <mailman.3451.1340643405.855.help-gnu-emacs@gnu.org>
2012-06-25 22:40   ` Michael Heerdegen
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=0E124857-40EB-4DF1-B8EE-351347C2377C@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=grivet@cnrs-orleans.fr \
    --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.