[Top][All Lists]

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

Re: auto-save-visited-file-name

From: Kim F. Storm
Subject: Re: auto-save-visited-file-name
Date: 15 Oct 2003 23:20:55 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Stefan Monnier <address@hidden> writes:

> Has anyone ever tried to use this variable ?

Not me.  Is this a new option?

> It has some really nasty effects.  Let's see a session:
> % emacs -q --no-site-file
> M-: (setq auto-save-visited-file-name t)
> C-x C-f ~/tmp/foo.txt RET
> type in some text with é or à
> C-x C-s
> # Now foo.txt has size 30, for instance, using latin-1.
> # Wait until the buffer is auto-saved.
> # BUG-1: Now foo.txt has size 32, using emacs-mule encoding.
> C-x C-s
> # BUG-2: Emacs prompts because the file was "changed since saved".
> # let's not save, but kill the buffer instead.
> C-g
> C-x k RET
> # BUG-3: foo.txt does not exist any more because Emacs thought it
> #        was the auto-save file and should thus be removed.
> I think we need to do something.
> Maybe fix the above bugs, which might uglify a good bit of the code.

Re. bug 1, I haven't a clue.

.. but doesn't that mean that auto-save files are always saved 
in emacs-mule rather than the current coding of the buffer?
That sounds like a more generic error that needs fixing anyway.

Re. bug 2, checking the varibale in basic-save-buffer seems to be 

Re. bug 3, checking the variable in delete-auto-save-file-if-necessary
seems to be trivial too.

> Or maybe remove the option instead.
> Or at least make it into a `defvar' rather than `defcustom'.

I think we should try to fix it...

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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