[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: why 4 inotfy events when saving a file?
From: |
Gregor Zattler |
Subject: |
Re: why 4 inotfy events when saving a file? |
Date: |
Tue, 12 Mar 2013 00:14:17 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi Eli, Emacs users and developers,
* Eli Zaretskii <eliz@gnu.org> [11. Mar. 2013]:
>> Date: Sun, 10 Mar 2013 22:44:42 +0100
>> From: Gregor Zattler <telegraph@gmx.net>
>>
>> saving a file from Emacs gives 4 inotify events:
[...]
>> why are there so many events?
>
> Because that's what Emacs does when it saves the file, first to the
> old version, then to the new. Take a look at the implementation of
> write-region, which is the primitive used by save-buffer to write the
> buffer to its file, you will see all those operations there.
Thanks (also to Barry Margolin) for the explanation. I now
search for a after-file-save-hook. But I didn't find it. Is
there some such thing?
Ciao, Gregor
--
-... --- .-. . -.. ..--.. ...-.-