Hi Eli, Emacs users and developers,
* Eli Zaretskii <
el...@gnu.org> [11. Mar. 2013]:
>> Date: Sun, 10 Mar 2013 22:44:42 +0100
>> From: Gregor Zattler <
tele...@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