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 16:55:01 +0200 Message-ID: <87o8zfow56.fsf@gmx.de> References: <8736h9rdc4.fsf@gnu.org> <87a7ba8uvx.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="10036"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 20 17:03:40 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 1iBKRf-0002RI-Kg for ged-emacs-devel@m.gmane.org; Fri, 20 Sep 2019 17:03:39 +0200 Original-Received: from localhost ([::1]:60532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBKRd-00081r-4r for ged-emacs-devel@m.gmane.org; Fri, 20 Sep 2019 11:03:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38763) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBKJc-00036J-3g for emacs-devel@gnu.org; Fri, 20 Sep 2019 10:55:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBKJa-0005r5-7u for emacs-devel@gnu.org; Fri, 20 Sep 2019 10:55:19 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:38295) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBKJZ-0005pD-N3; Fri, 20 Sep 2019 10:55:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1568991304; bh=tDSUabXRY3JYhqz/uocHkdY6n9LgYWYol7+cyPq37lo=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=aMvjsmWIMHaZVW/iG27dyC3kaUfe5yXlg0riouccPbZJFKtSm7FGi0WRCJNxJUu74 7NvFn+4IgGGqbkVZz10GIOBBnNDmGfSL8gCAsMHNv5bzMhsSUBnZquPgfRKAsQF2mW tqs0tcefpuYhCH9OdTOpGvTlc6GqzMRFQR+HAYoU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.86.38.214]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1McY8d-1hdMbV0Yrl-00cyph; Fri, 20 Sep 2019 16:55:04 +0200 In-Reply-To: <83o8zfrqe6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 Sep 2019 17:30:57 +0300") X-Provags-ID: V03:K1:4a8nXzRd4lkm8UkMx+IE4kb+4MpEcEqSBkkvHl/InwVAUnu8F25 WLKJJsiAWxLssvWqBWSb9Ubx7XW6YvoDRRwUBWtIk7meYQ1sOS5vx57v7aPu8tx9ex0eVuW usEgZBwpe+38EOeO9ICtInCkep+22M5xW2BTvLwCRmWRumEnBcHlU/uuCfJ6EiS/jDYReai Et4e++i1ZJgHexPaDFRoA== X-UI-Out-Filterresults: notjunk:1;V03:K0:ESW18jJNpQU=:pWhpMvuyJwZL3tHd465Ly5 5L0PH7BZp4myAvKDWFRdRJmADeYN8OzVfi8T6AZsiYTG6OedKg/OJPpGufDAz9/TidtjvpC8/ 8xnf2Mw+T1TgmuUQHpP0G3aR5hhKNvgTaX5CuQmCNYvKyQgHsWgFWQrlkuzLFHTAVv6BOctPs 07iH01SMHb+DrEb5EhK2hTzPdstdZqoV8zbVtFdcbxuQ5flbwkFBFaNzz6NxK+OmjAje2oO68 alPQFsW4VIra4uyF/yRqqWQkNsRqZA6t+4SW6hQHY5Xy8eDoQUvTSKtGrIupejWf9mHVetJIL z8KSmsM2nMBcgnkyAtRvxHtbEKl4vVy5pkg8xey96VUhIC9KAOWcU0H0aNv29Rbjv7JH+By4t A9V8HUtUmPy/Ga1r/y0BBlgxfcM6M4j/5euGftrV5K7vFEBp8wT4rhOR2E7h8sBS4TDIgAx4X d8Wzxk72fh7pM5vucG+xvr/f+Bz39DoBouuVmcC1V8rOfCyC/3Mld9KP/n0w0WsV2mS70t0Ap sHj6bkNz0ZpiKe3tXf4iNgBc6ImAr2hgNmFvj23m0MbfRiZ6dEZ0e6BZs1zX9wmptpuDn/VQg BIrmUdED94WJTS50JWVbK1OK/+IR9khgNDbi3V8vHNxs7FGxfxWuweCQZlPZWOlhcHF5yOYFp HHasmtKdQefLshhqyvaGSWZY+NQjBLeNgmgW39Xp8uq9Y1Etm9w3j4olXik8T15sowDTveVIU 4DwmeV+NFOaStzAgHVuoOYFGzLVbVmeYzR4kj114RB/+ZtIY1eeenQEyW22De9KxuZgkHSiq X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.15 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:240193 Archived-At: Eli Zaretskii writes: >> It is signalled by our inotify backend as `q-overflow' event, but >> filenotify.el doesn't care. And I haven't checked the other >> backends. Maybe we shall expose it in filenotify.el (independent where >> this discussion ends)? > > Expose it and do what? About the only thing you can do is switch to > the alternative implementation (like turn off auto-revert-use-notify), > but (a) not every feature even has such an alternative, and (b) you > will still miss events, because there's no way to recover the lost > events. In filenotify.el, we use already an internal `stopped' event, see (info "(elisp) File Notifications") It is raised when somebody calls `file-notify-rm-watch', or a watched file is deleted or renamed. Since it is documented, packages using filenotify could care about. And yes, autorevert falls back to polling. If `q-overflow' arrives in filenotify, we could send a `stopped' event for all valid watch descriptors which belong to inotify. I don't say that every package can be profit from this, but it is better than doing nothing. Btw, I haven't seen ever `q-overflow'. So I wouldn't know at the beginning, how to write a test in filenotify-tests. Best regards, Michael.