emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: saveplace: don't ask for coding system


From: Juanma Barranquero
Subject: Re: saveplace: don't ask for coding system
Date: Tue, 4 Dec 2007 17:40:57 +0100

On Dec 4, 2007 5:20 AM, Eli Zaretskii <address@hidden> wrote:

> Yes; and saveplace file is an internal Emacs file, not unlike
> auto-save files.

I've followed suit and used emacs-mule for the ido history file in Emacs 22.

Which brings forth a similar case: the savehist-file (from
savehist.el) is by default saved in utf-8 (at least on recent XEmacs
and Emacs). However, the eol-conversion is left for Emacs to decide.

That's Not Good when some of the saved variables contain "^M" or "^J"
on a non-unix environment. For example, I did some "^M^J" -> "^J"
replacements (to fix a garbled patch) on Windows, and in subsequent
invocations of Emacs the contents of query-replace-history got sillier
and sillier: "^M^M^J", "^M^M^M^M^J", etc.

Now, savehist.el is friendly enough to contain a variable
`savehist-coding-system', so it's easy to fix in your own .emacs. The
question is, for a file whose intention is to preserve exactly some
variable's contents, wouldn't be a better default to use utf-8-unix?

             Juanma




reply via email to

[Prev in Thread] Current Thread [Next in Thread]