From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.help Subject: why 4 inotfy events when saving a file? Date: Sun, 10 Mar 2013 22:44:42 +0100 Message-ID: <20130310214442.GA8538@boo.workgroup> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1362951966 26916 80.91.229.3 (10 Mar 2013 21:46:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Mar 2013 21:46:06 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 10 22:46:31 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UEo4b-0008GH-HS for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2013 22:46:29 +0100 Original-Received: from localhost ([::1]:52536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEo4F-0000Ss-6G for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2013 17:46:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEo3v-0000SE-LA for help-gnu-emacs@gnu.org; Sun, 10 Mar 2013 17:45:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEo3o-0007Vr-V8 for help-gnu-emacs@gnu.org; Sun, 10 Mar 2013 17:45:47 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:54866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEo3o-0007Sc-Ku for help-gnu-emacs@gnu.org; Sun, 10 Mar 2013 17:45:40 -0400 Original-Received: from mailout-de.gmx.net ([10.1.76.31]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LlsgY-1UnrpS3BxY-00ZL1x for ; Sun, 10 Mar 2013 22:45:38 +0100 Original-Received: (qmail invoked by alias); 10 Mar 2013 21:45:38 -0000 Original-Received: from p57BBBB5D.dip.t-dialin.net (EHLO boo.workgroup) [87.187.187.93] by mail.gmx.net (mp031) with SMTP; 10 Mar 2013 22:45:38 +0100 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX19jLnojSexjZqmDmeDDJ037pXnxsTEn7wjjerhwCh W7nAajFsVawezv Original-Received: from grfz by boo.workgroup with local (Exim 4.80) (envelope-from ) id 1UEo3g-00042R-6t; Sun, 10 Mar 2013 22:45:32 +0100 Mail-Followup-To: help-gnu-emacs Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89463 Archived-At: Dear Emacs users and developers, saving a file from Emacs gives 4 inotify events: how to reproduce: on first terminal do: emacs-snapshot -nw -Q /tmp/inotify.test modify file on second terminal do inotifywait -m -q --format '%e %w%f' /tmp/inotify.test on first terminal do ^x^s (safe buffer) result on second terminal is: MODIFY /tmp/inotify.test OPEN /tmp/inotify.test MODIFY /tmp/inotify.test CLOSE_WRITE,CLOSE /tmp/inotify.test why are there so many events? This is with GNU Emacs 24.3.50.1 (i486-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-03-04 on dex, modified by Debian Thanx for your attention, Gregor -- -... --- .-. . -.. ..--.. ...-.-