bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: <filename> changed on disk; really edit the buffer?


From: Stephan Lukits
Subject: Re: <filename> changed on disk; really edit the buffer?
Date: Tue, 13 Nov 2007 10:15:55 +0100
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Eli Zaretskii schrieb:
>> From: Stephan Lukits <stephan.lukits@FernUni-Hagen.de>
>> Date: Mon, 12 Nov 2007 16:39:29 +0100
>> Cc:
>>
>> (file-attributes "~/.emacs"):
>> (nil 1 5 5 (18232 28429) (18232 28429) (18206 2636) 3080 "-rw-rw-rw-"
>> nil -16252 (6714 . 34723))
>>
>> (visited-file-modtime):
>> (18232 28366)
>
> That's 63 seconds of difference, if I'm right.  Is there some process
> that touches files on that filesystem?

I don't think so.  But you know it's Windows, thus you never know.
To make sure I started a reference text editor which is also
supposed to complain if the visited file changes on disk.  Since
I can work with that editor without any problem (except it's not
Emacs) I guess it's a problem with Emacs.  Btw as soon I start
Emacs and visit the same file as the other editor and Emacs does
auto-saving the other editor complains about "file changed on
disk" too.

> (What filesystem is that,
> btw?)

NTFS

> Do you see a difference in what "ls -l" says about such files
> when you first visit the file, and then after Emacs complains and you
> type `y'?

It changes time even before Emacs complains.  It changes time
exactly at that moment when emacs does auto-saving.

before auto-saving:
$ ls -o auto-save-test.tex
-rwx------+ 1 pc-betreuung 48 Nov 13 09:59 auto-save-test.tex

after auto-saving:
$ ls -o auto-save-test.tex
-rwx------+ 1 pc-betreuung 48 Nov 13 10:00 auto-save-test.tex




reply via email to

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