[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-save-visited-file-name
From: |
Stefan Monnier |
Subject: |
Re: auto-save-visited-file-name |
Date: |
17 Oct 2003 17:14:59 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> Does this solve the problems you found with auto-save-visited-file-name?
It helps, but see below.
> *** buffer.c.~1.438.~ Thu Sep 11 09:51:05 2003
> --- buffer.c Fri Oct 17 11:37:36 2003
> ***************
> *** 1429,1435 ****
> if (STRINGP (b->auto_save_file_name)
> && b->auto_save_modified != 0
> && BUF_SAVE_MODIFF (b) < b->auto_save_modified
> ! && BUF_SAVE_MODIFF (b) < BUF_MODIFF (b))
> {
> Lisp_Object tem;
> tem = Fsymbol_value (intern ("delete-auto-save-files"));
> --- 1429,1436 ----
> if (STRINGP (b->auto_save_file_name)
> && b->auto_save_modified != 0
> && BUF_SAVE_MODIFF (b) < b->auto_save_modified
> ! && BUF_SAVE_MODIFF (b) < BUF_MODIFF (b)
> ! && NILP (Fsymbol_value (intern ("auto-save-visited-file-name"))))
> {
> Lisp_Object tem;
> tem = Fsymbol_value (intern ("delete-auto-save-files"));
I think the above has a problem: auto-save-visited-file-name is only
consulted when setting up buffer-auto-save-file-name, so it can have a value
inconsistent with the actual situation. Better check whether
buffer-auto-save-file-name is equal to buffer-file-name.
Stefan