From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: auto-save-visited-file-name Date: 15 Oct 2003 14:59:33 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1066244514 20268 80.91.224.253 (15 Oct 2003 19:01:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Oct 2003 19:01:54 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Oct 15 21:01:53 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9qu9-0006qJ-00 for ; Wed, 15 Oct 2003 21:01:53 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A9qu3-00021D-00 for ; Wed, 15 Oct 2003 21:01:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9qty-00050M-MS for emacs-devel@quimby.gnus.org; Wed, 15 Oct 2003 15:01:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A9qsW-0004yN-Kt for emacs-devel@gnu.org; Wed, 15 Oct 2003 15:00:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A9qry-0004o5-5a for emacs-devel@gnu.org; Wed, 15 Oct 2003 15:00:09 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A9qrx-0004o2-S3 for emacs-devel@gnu.org; Wed, 15 Oct 2003 14:59:37 -0400 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id h9FIxXUN023101 for ; Wed, 15 Oct 2003 14:59:33 -0400 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id 8C6153C63E; Wed, 15 Oct 2003 14:59:33 -0400 (EDT) Original-To: emacs-devel@gnu.org Original-Lines: 29 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner: Found to be clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17121 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17121 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 =C3=A9 or =C3=A0 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