[Top][All Lists]

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


From: Stefan Monnier
Subject: auto-save-visited-file-name
Date: 15 Oct 2003 14:59:33 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Has anyone ever tried to use this variable ?

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-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.
Or maybe remove the option instead.
Or at least make it into a `defvar' rather than `defcustom'.


reply via email to

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