From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: filenotify.el Date: Mon, 22 Jul 2013 12:17:48 -0600 Organization: XCP-1 Message-ID: <51ED774C.4010309@lanl.gov> References: <87d2ra9z4x.fsf@gmx.de> <7765700.YGZAUaTNB1@descartes> <87y595uthx.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1374517086 4150 80.91.229.3 (22 Jul 2013 18:18:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Jul 2013 18:18:06 +0000 (UTC) Cc: =?UTF-8?B?UsO8ZGlnZXIgU29uZGVyZmVsZA==?= , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 22 20:18:07 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 1V1KgO-0006Pu-TU for ged-emacs-devel@m.gmane.org; Mon, 22 Jul 2013 20:18:05 +0200 Original-Received: from localhost ([::1]:58238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1KgO-0006bP-D0 for ged-emacs-devel@m.gmane.org; Mon, 22 Jul 2013 14:18:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1KgJ-0006aZ-UG for emacs-devel@gnu.org; Mon, 22 Jul 2013 14:18:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1KgI-0004St-OZ for emacs-devel@gnu.org; Mon, 22 Jul 2013 14:17:59 -0400 Original-Received: from proofpoint4.lanl.gov ([204.121.3.52]:53053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1KgI-0004Rp-FM for emacs-devel@gnu.org; Mon, 22 Jul 2013 14:17:58 -0400 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailgate4.lanl.gov (8.14.5/8.14.5) with ESMTP id r6MIHmDK031451; Mon, 22 Jul 2013 12:17:48 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id C0E01181192D; Mon, 22 Jul 2013 12:17:48 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from [128.165.123.183] (xray-r06.lanl.gov [128.165.123.183]) by mailrelay1.lanl.gov (Postfix) with ESMTP id B06691811929; Mon, 22 Jul 2013 12:17:48 -0600 (MDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110717 Lanikai/3.1.11 In-Reply-To: <87y595uthx.fsf@gmx.de> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794, 1.0.431, 0.0.0000 definitions=2013-07-22_05:2013-07-22, 2013-07-22, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 204.121.3.52 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:162071 Archived-At: > (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? Why not just let the error from the underlying notification request appear? (This is the usual bit about "don't call stat(2) before open(2); just deal with failures from the latter".) Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.