From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: filenotify.el Date: Wed, 17 Jul 2013 16:54:34 +0200 Message-ID: <87y595uthx.fsf@gmx.de> References: <87d2ra9z4x.fsf@gmx.de> <7765700.YGZAUaTNB1@descartes> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1374073120 4482 80.91.229.3 (17 Jul 2013 14:58:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jul 2013 14:58:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?R=C3=BCdiger?= Sonderfeld Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 17 16:58:38 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UzTBd-00022Z-02 for ged-emacs-devel@m.gmane.org; Wed, 17 Jul 2013 16:58:37 +0200 Original-Received: from localhost ([::1]:35859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzTBc-0007PG-NQ for ged-emacs-devel@m.gmane.org; Wed, 17 Jul 2013 10:58:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzT7q-00053O-7r for emacs-devel@gnu.org; Wed, 17 Jul 2013 10:54:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzT7o-0003oP-MM for emacs-devel@gnu.org; Wed, 17 Jul 2013 10:54:42 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:53127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzT7o-0003ng-Dk for emacs-devel@gnu.org; Wed, 17 Jul 2013 10:54:40 -0400 Original-Received: from detlef.gmx.de ([93.202.50.185]) by mail.gmx.com (mrgmx001) with ESMTPS (Nemesis) id 0LdpcB-1UH1or2S9L-00iy6X for ; Wed, 17 Jul 2013 16:54:39 +0200 In-Reply-To: <7765700.YGZAUaTNB1@descartes> (=?utf-8?Q?=22R=C3=BCdiger?= Sonderfeld"'s message of "Wed, 17 Jul 2013 15:52:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:dS0ckuigoO6FYZ/Ivr+pN9XaGgw3apxmeDaiaQ4+2WokEeKVCfQ NZV2B9rh/JZ4U4N+WCuO7HETavw3A8jtigdAT2ZixrxQ7FtPwH5RXGAllNvhDUmYDgM/xuD sIFpID5ncwc8VGbzgx4f8wN8ZZ6OMSzr1hqrs+p6f0NhyZjrkeC0X2gkcMY9e3F/1Og/ibP /DuVKOBdnChEWTt8AgJyg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161973 Archived-At: R=C3=BCdiger Sonderfeld writes: > Hello, Hi R=C3=BCdiger, > I've written a new "Auto Update" module for magit using the new API:=20 > https://github.com/magit/magit/pull/721 Nice :-) One remark: the following code is not sufficient: (defun magit-filenotify-start () "Start watching for changes to the source tree using filenotify. This can only be called from a magit status buffer." (unless file-notify-support (error "Support for `file-notify' required.")) ... There could be support even if `file-notify-support' is nil. This variable reflects only, whether a respective library has been linked to Emacs, working for local files. `file-notify' could run for remote files, even if it is not supported locally. Maybe we shall spend a new function (defun file-notify-supported-p (file) "Returns non-nil if filesystem pertaining to FILE could be watched." ... Comments? > Best regards, > R=C3=BCdiger Best regards, Michael.