From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Emacs inotify support? Date: Sun, 13 Sep 2009 19:28:45 +0200 Message-ID: References: <6fa54e4e0909111554g4165418albbdffc142b3b52ee@mail.gmail.com> <83tyz8z3sl.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252863064 24179 80.91.229.12 (13 Sep 2009 17:31:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Sep 2009 17:31:04 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, lennart.borgman@gmail.com, antoine.levitt@gmail.com To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 13 19:30:56 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mmsue-0001w5-Gy for ged-emacs-devel@m.gmane.org; Sun, 13 Sep 2009 19:30:56 +0200 Original-Received: from localhost ([127.0.0.1]:34874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mmsud-0005nh-Pz for ged-emacs-devel@m.gmane.org; Sun, 13 Sep 2009 13:30:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mmssz-000542-UR for emacs-devel@gnu.org; Sun, 13 Sep 2009 13:29:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mmssv-0004za-4q for emacs-devel@gnu.org; Sun, 13 Sep 2009 13:29:13 -0400 Original-Received: from [199.232.76.173] (port=42586 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mmssu-0004zQ-Vv for emacs-devel@gnu.org; Sun, 13 Sep 2009 13:29:09 -0400 Original-Received: from proxy1.bredband.net ([195.54.101.71]:42018) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mmssr-0005cB-6D; Sun, 13 Sep 2009 13:29:05 -0400 Original-Received: from iph2.telenor.se (195.54.127.133) by proxy1.bredband.net (7.3.140.3) id 49F5A152036A6FEB; Sun, 13 Sep 2009 19:29:02 +0200 X-SMTPAUTH-B2: joakvero X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtBWADPJrEpT44qWPGdsb2JhbACbPwEBAQE3vCiEGAU X-IronPort-AV: E=Sophos;i="4.44,379,1249250400"; d="scan'208";a="42521162" Original-Received: from ua-83-227-138-150.cust.bredbandsbolaget.se (HELO exodia) ([83.227.138.150]) by iph2.telenor.se with ESMTP; 13 Sep 2009 19:28:50 +0200 Original-Received: from localhost.localdomain (DIR-655.lan [192.168.200.113]) (authenticated bits=0) by exodia (8.14.3/8.14.3) with ESMTP id n8DHSjBL000651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 13 Sep 2009 19:28:47 +0200 In-Reply-To: (Richard Stallman's message of "Sun, 13 Sep 2009 12:39:48 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115281 Archived-At: Richard Stallman writes: > The OP was talking about detecting changes in files that Emacs does > not know about, including in files that are created while Emacs runs. > > I think he wanted to detect changes in the contents of a directory > that Emacs is looking at. From another point of view, that can be > described as changes in the files that directory. One way to look at it is auto-revert-mode for directories visited with dired. Something other than Emacs is changing the contents of a directory and I would like dired to notice. This can be achieved in a number of ways, but the way I had in mind is an inotify handler in Emacs, that would insert some kind of event in the event stream, so one could bind a handler to it. This should be portable across platforms with different filesystem notification schemes, and consistent with Emacs behavior in general. -- Joakim Verona