unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* auto-save-visited-file-name
@ 2003-10-15 18:59 Stefan Monnier
  2003-10-15 21:20 ` auto-save-visited-file-name Kim F. Storm
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Stefan Monnier @ 2003-10-15 18:59 UTC (permalink / raw)



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


        Stefan

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-10-24  5:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-15 18:59 auto-save-visited-file-name Stefan Monnier
2003-10-15 21:20 ` auto-save-visited-file-name Kim F. Storm
2003-10-16 17:10   ` auto-save-visited-file-name Stefan Monnier
2003-10-16 19:52     ` auto-save-visited-file-name Kim F. Storm
2003-10-16  7:19 ` auto-save-visited-file-name Eli Zaretskii
2003-10-17 20:46 ` auto-save-visited-file-name Richard Stallman
2003-10-17 21:14   ` auto-save-visited-file-name Stefan Monnier
2003-10-23 15:55   ` auto-save-visited-file-name Kevin Rodgers
2003-10-24  5:16     ` auto-save-visited-file-name Richard Stallman

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).