From: Gregor Zattler <telegraph@gmx.net>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: why 4 inotfy events when saving a file?
Date: Tue, 12 Mar 2013 00:14:17 +0100 [thread overview]
Message-ID: <20130311231417.GB26775@boo.workgroup> (raw)
In-Reply-To: <83ehfmx5xz.fsf@gnu.org>
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
--
-... --- .-. . -.. ..--.. ...-.-
next prev parent reply other threads:[~2013-03-11 23:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-10 21:44 why 4 inotfy events when saving a file? Gregor Zattler
2013-03-10 22:09 ` Eli Zaretskii
2013-03-11 23:14 ` Gregor Zattler [this message]
2013-03-12 3:07 ` William Gardella
[not found] ` <mailman.21890.1363043748.855.help-gnu-emacs@gnu.org>
2013-03-12 2:21 ` B. T. Raven
[not found] <mailman.21821.1362951956.855.help-gnu-emacs@gnu.org>
2013-03-11 0:59 ` Barry Margolin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130311231417.GB26775@boo.workgroup \
--to=telegraph@gmx.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).