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: Mon, 14 Sep 2009 07:47:35 +0200 Message-ID: References: <6fa54e4e0909111554g4165418albbdffc142b3b52ee@mail.gmail.com> <83tyz8z3sl.fsf@gnu.org> <83d45uzl60.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 1252907287 19614 80.91.229.12 (14 Sep 2009 05:48:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2009 05:48:07 +0000 (UTC) Cc: emacs-devel@gnu.org, lennart.borgman@gmail.com, rms@gnu.org, antoine.levitt@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 14 07:47:58 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 1Mn4Pt-00042x-Sy for ged-emacs-devel@m.gmane.org; Mon, 14 Sep 2009 07:47:58 +0200 Original-Received: from localhost ([127.0.0.1]:47465 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn4Pt-0007xs-0q for ged-emacs-devel@m.gmane.org; Mon, 14 Sep 2009 01:47:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mn4Pk-0007wE-6J for emacs-devel@gnu.org; Mon, 14 Sep 2009 01:47:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mn4Pd-0007sm-K2 for emacs-devel@gnu.org; Mon, 14 Sep 2009 01:47:47 -0400 Original-Received: from [199.232.76.173] (port=32969 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mn4Pd-0007sj-Bk for emacs-devel@gnu.org; Mon, 14 Sep 2009 01:47:41 -0400 Original-Received: from proxy2.bredband.net ([195.54.101.72]:64360) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mn4Pa-000298-HJ; Mon, 14 Sep 2009 01:47:38 -0400 Original-Received: from iph2.telenor.se (195.54.127.133) by proxy2.bredband.net (7.3.140.3) id 4A8FF71400861190; Mon, 14 Sep 2009 07:47:36 +0200 X-SMTPAUTH-B2: joakvero X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsJUAHZ1rUpT44qWPGdsb2JhbACbPgEBAQE3vUWEGAU X-IronPort-AV: E=Sophos;i="4.44,381,1249250400"; d="scan'208";a="42590822" Original-Received: from ua-83-227-138-150.cust.bredbandsbolaget.se (HELO exodia) ([83.227.138.150]) by iph2.telenor.se with ESMTP; 14 Sep 2009 07:47:36 +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 n8E5lZMs004965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 14 Sep 2009 07:47:35 +0200 In-Reply-To: <83d45uzl60.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 13 Sep 2009 22:42:15 +0300") 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:115293 Archived-At: Eli Zaretskii writes: >> From: joakim@verona.se >> Cc: Eli Zaretskii , antoine.levitt@gmail.com, >> lennart.borgman@gmail.com, emacs-devel@gnu.org >> Date: Sun, 13 Sep 2009 19:28:45 +0200 >> >> 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. > > I can hardly imagine that using inotify is more portable than looking > at the time stamp of the directory (which works even on Windows, if > you have NTFS). Re-reading my message I see it was not very clear. I meant that a portable emacs interface can be built on the various plattform specific interfaces, such as inotify. Looking at the directory timestamp could be one such implementation, but that would require polling in Emacs right? That would make Emacs slow with a large number of open dired buffers. > But maybe I didn't understand what you were trying to say. -- Joakim Verona