From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Remove all existing file notification watches from Emacs Date: Sat, 16 Oct 2021 15:30:53 +0200 Message-ID: <87r1clhzaq.fsf@gmx.de> References: <87zgr9igqe.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36866"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 16 15:32:00 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbjn6-0009P6-KY for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Oct 2021 15:32:00 +0200 Original-Received: from localhost ([::1]:58424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbjn5-0004tT-DM for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Oct 2021 09:31:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbjmB-00042S-04 for emacs-devel@gnu.org; Sat, 16 Oct 2021 09:31:03 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:58765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbjm8-0003xi-Cr for emacs-devel@gnu.org; Sat, 16 Oct 2021 09:31:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1634391055; bh=YH4/FUKXwXD1s33acT7fOSRXvPOgCO5hl9wsCBL2lB8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Trt/JoUk7ZoCpqUl7ctnMfdlEOPA73qWmtOz6L15ST4+e+3l6AI4IsyMKa2VCNHJo QPU3oqnTub4jyDFHsY5J9vISoNJXDCqbP1PDaEv8FbQy0aXB7h/qg7YdxoNYNgGyo6 CWQRNJAlyjz4uO1/itQ4vFiN/AgEhMfr1zb0J+Vg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.242.175]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MCKFu-1mSQNp20LS-009O7s; Sat, 16 Oct 2021 15:30:55 +0200 In-Reply-To: (Stefan Monnier's message of "Sat, 16 Oct 2021 09:23:30 -0400") X-Provags-ID: V03:K1:FLwTYOEmmmVdExdI9zDhLsMNseej0G6qOiyhsPE7Qr3/Sw688tj ccROlK9THIETjGYuIJ5lkUtLZ19KCgZbcjdnRSXA4l/OIersOWOxJ7v0AJv0SeWhdMZ00RI xOjg7aTjwx+Hn0EzwWnCMSv0GVx80+bKzu0n5I+HLd0COIMw2qWPxtCwHGYUzGApaEoCoyS an7/gULT3u0wet5dhUD6A== X-UI-Out-Filterresults: notjunk:1;V03:K0:8tn0yqFq/9g=:+uX3OqpPPtpWHdAekO18U5 ZZfHnl+kdCFi6yNeXGJ4F1AxgyfERZQEm2icv7N92ghgtrkrKW9VPyZSBrbp2DHiEvCatEJO/ RwEH1bKytGyifHeYnR8yET+DRNGuu6ZeySCzYyNOToEYp/Yn3HWxyrdrqUkZg0BTAKHeHp8uh MxFJhklMzraBmnLQVithhVfTV1ua7LkkF7eL1mm/SYBvczxY5x3i3TawFSsiFKrZ8i/99p0t0 SxbRe82v444Q4ZVtGgpf+Z/UrM80CBFpdCjEU0DjkzYSVByaKCqBpy69ltS4fH5DNFqm7dIjq 1sYTdmRwkDSG2O2Jzl8U+0cwniTkOyM3B7ldPvrsakJvQmiN35zCN5c5Z2u0o5X11u7iAEB5B KlrcpzHxtZwxwLncSCAZNUqqbY61MPzcPIQgqxuZsavbabIro5YjpHrOePQFEURoOb+561xcz 4183/P3mfRFQZZLk9WfC597QgWAHG9oeqv7s76zxJMsZ684tuVdFCFU+KoCUIjFWLV4chIfhG iuNEbU/+epSzrJLSbQH9pKduPozYMMSsd/TrDl7wXfxW8tMj77fBAtLAHcK8kmBnD3WlrOHQG oXso78+4+qUlwWsQDn5aoF4Ut576Q+msS+uYVmDmsHQNdoJXKcs26J3asHkhe3HTQq3uZHV9f pxofvl/PYi01PVD8ZOPmp/tTnl2UOXIOeFFyL22Luy0sdXSdoJD1CPiafJ8JJjORDMZZNt0OU 1+fu7azUfnCk0U0RebhZl34PCwtejDg/ubTWISpJwhfUTU7FZnkgTV+iKRzGAdzf/3/1nBW6 Received-SPF: pass client-ip=212.227.17.20; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277171 Archived-At: Stefan Monnier writes: Hi Stefan, > I can see its use while debugging but I can't imagine it being of any > use in real ELisp code because it's much too blunt. Not only in code. It's an interactive command. > [ Personally I'd put a `--` in its name and/or add some blurb in the > docstring explaining it's only for debugging. ] Nope. There have been bug reports in the past, that Emacs was stalled after creating hundreds of file notifications. One solution is to stop/restart Emacs. The other solution is this command. >> The code is simple enough to avoid regressions. I'd like to add it to >> the emacs-28 branch (plus doc), any objection? > > I don't see any reason why it needs to be in emacs-28. > It's not a bugfix and there's no hurry. After advice from Eli, I've pushed it to master. > Stefan Best regards, Michael.