From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: A project-files implementation for Git projects Date: Fri, 20 Sep 2019 17:04:13 +0200 Message-ID: <87k1a3ovpu.fsf@gmx.de> References: <8736h9rdc4.fsf@gnu.org> <87pnk2zvvy.fsf@gnu.org> <838sqpx9eq.fsf@gnu.org> <83y2yow9dy.fsf@gnu.org> <838sqnw2na.fsf@gnu.org> <3007947f-f4eb-e3e8-8c14-1b372323aa1c@yandex.ru> <831rwfvzd6.fsf@gnu.org> <64bcedbf-d891-dcad-ac65-5719920f58e2@yandex.ru> <83k1a4tct2.fsf@gnu.org> <83tv97run8.fsf@gnu.org> <5ba04bf6-ed74-a18e-9074-5aa481ec3669@yandex.ru> <2c78a9ac-c535-bc18-8da8-30e121484929@yandex.ru> <87sgoroy48.fsf@gmx.de> <83o8zfrqe6.fsf@gnu.org> <04c74ccf-e86c-e5e2-f4f6-ec0c2bef5486@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="23532"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 20 17:06:55 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBKUn-0005xv-FA for ged-emacs-devel@m.gmane.org; Fri, 20 Sep 2019 17:06:54 +0200 Original-Received: from localhost ([::1]:60606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBKUl-00040b-PA for ged-emacs-devel@m.gmane.org; Fri, 20 Sep 2019 11:06:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40453) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBKSP-0003xp-Sq for emacs-devel@gnu.org; Fri, 20 Sep 2019 11:04:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBKSN-0001YP-HV for emacs-devel@gnu.org; Fri, 20 Sep 2019 11:04:25 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:56913) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBKSN-0001Xo-2f; Fri, 20 Sep 2019 11:04:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1568991854; bh=PcNNuZRU1rfmUHMLYZswogRQdr1cNVrv4862yd1ULOw=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=lvTkMERI4vqo26qRgi8cF9e/AK/M+SV8BxMGfQ/yw2WIbow6MyNQhdZEgYrHSIwbD MsP7JQetIN/zePzfqV0dYBMh2tweSMLH2TTy6YotuW6HiPUQNgrTJVakh2u1SpXH7u z17oCrW0pUDVcSC0H2pqQCXpDJtiRyU7m9zDwdYs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.86.38.214]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M4b1y-1iAmUK34ru-001gpT; Fri, 20 Sep 2019 17:04:14 +0200 In-Reply-To: <04c74ccf-e86c-e5e2-f4f6-ec0c2bef5486@yandex.ru> (Dmitry Gutov's message of "Fri, 20 Sep 2019 17:51:04 +0300") X-Provags-ID: V03:K1:Ot9amCZy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LxLz60CWKx5xnXWj+7UA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:240195 Archived-At: Dmitry Gutov writes: > I think this would require two events, though: queue-overflow-start > and queue-overflow-stop. I'm not sure that inotify signals that a queue could be reused. It must be arranged by the client. inotify(7) says Note that the event queue can overflow. In this case, events are lo= st. Robust applications should handle the possibility of lost events gra= ce=E2=80=90 fully. For example, it may be necessary to rebuild part or all of = the application cache. (One simple, but possibly expensive, approach is= to close the inotify file descriptor, empty the cache, create a new i= no=E2=80=90 tify file descriptor, and then re-create watches and cache entries = for the objects to be monitored.) This means, that a watch object returned by `file-notify-add-watch' cannot be reused. Let's first inform filenotify clients, that a watch is not valid anymore. This gives them already valuable information. Best regards, Michael.