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 18:13:45 +0200 Message-ID: <87ee8lhrra.fsf@gmx.de> References: <87zgr9igqe.fsf@gmx.de> <87r1clhzaq.fsf@gmx.de> <87mtn9hwy5.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38615"; 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 18:15:20 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 1mbmLA-0009pG-Ji for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Oct 2021 18:15:20 +0200 Original-Received: from localhost ([::1]:38658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbmL8-00069M-LZ for ged-emacs-devel@m.gmane-mx.org; Sat, 16 Oct 2021 12:15:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbmJr-0005Ko-7J for emacs-devel@gnu.org; Sat, 16 Oct 2021 12:13:59 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:34523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbmJj-0001id-SR for emacs-devel@gnu.org; Sat, 16 Oct 2021 12:13:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1634400826; bh=WQ1U5Nf1X9NHTvGf85SaO4kIRVyM43pj4nyFrT022eA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Gdo87MSzvWWZyUbZ6SowK2qZH+0uDYoTPbMoTrzCQootfZB9Jv0gOxbYjvE8wR1J5 dVL5ajjU7m+4kMWA7zAblVYiyMwB/vpWAhyXAf+GAPPACRmo6qDbxVAXibfc033HQE 8UJXKEr5n+A2yQ7VEVIUxTV6lYYaRt0M0HO7wMEA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.242.175]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N8XPn-1mozpj2XQn-014RzU; Sat, 16 Oct 2021 18:13:46 +0200 In-Reply-To: <87mtn9hwy5.fsf@gmx.de> (Michael Albinus's message of "Sat, 16 Oct 2021 16:21:38 +0200") X-Provags-ID: V03:K1:5KgcoIhCLeK/vxhBM2y1Il2MpQt2JM8A6wDphnN63SwCLvBXB9W Nr4ca2rAGA9OSNjAyZV0WbIigGCD8all92WFweIGKmyiToihp9RfP+94pVcb2QFYo5KES84 KzVkaPFu9i487hqTtGhP9zG4LmvjXOZR0YzrNzN/Ks8IIMC8oiwyRCseb3jE+DIJhPdBlYe yeQu2ICKM8d4HoKlB13XA== X-UI-Out-Filterresults: notjunk:1;V03:K0:WzYTLeOCPZ8=:WxJEf+HbIG7kHWQrTSWSu5 tuVN1EPf5nEnojzHYRcZcZsjYJ/jo6Z9zF5AQMWfONqKnYroSzX/m2+MIYcD8O+XCJTUR5xTS d7ZXZ4+tQEUGCGrC5dhO8YQtpEA/EP8nsLpYgIoxFTVB11zHNMpPtIbG7hAUcoluUBY+WKy9G gtWFZcBYxewe80r44pc/p/fg3dwy5r8YK4a+RJ4tmDHTEPrZqi7QR33vIbyJwFPbPv3R729wV p2cngB9azN0klkye8snFX1t3UwLpGtyqgbbCaVcuh5nddxGoVJocnvlehPK2VMsPduOMUt6bq AdKJCJMr6U2QfKCu5DFgFfgrpG7cBHjajFYvd2wbC7UEjyMmghdumZde3fO8XJf2fTOkN2H5H VUL6D6GLevLP+qWszuzSvNdlMN2RBgYHX0BBe6uYap8FOrFqrrGaL/sA4HbvEdg4Vti7hlY2k OzhUDVgPEaSzj0hRtecrSkTgpPlEPpslfLnP8imGuQ6nErxBOVwGl+iQa73ONWdfqqjJS0rzv 82wawoVm921jE818Gq9mOScpWYao8M2YLfC1hnV62LeKWJfb8X+L6Xs1Ub4Bl/fojrjjdgtQN kMgUYJoAqn+q8NfcoH6LQpLnrg/+xjr5JVst8EuFGtf5OrEw3kxPeqntnzeLdblgcDaHZgPMH grJuLZPkXwMGmObTfo9vw4cQRxHpzkgRzwMVy5ky3d7O+PV6iu0uyxUHPA+kNq9ePgB03TZZC a8iGwaW8/oJt+1avpIAF0kq6EP8QJy2ZBzTPzNjpqGSIndVaRJSrYKtjTRp4yMcUCjAQvVpk Received-SPF: pass client-ip=212.227.15.19; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:277185 Archived-At: --=-=-= Content-Type: text/plain Michael Albinus writes: Hi Stefan, >> I mean, using this instead of restarting Emacs may work sometimes, but >> it can have undesirable (and hard to predict, for the end user) side >> effects since packages have had their watches killed from under them. > > Like this? Oops, I meant --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi index e3dcd6c778..5323f5f9a1 100644 =2D-- a/doc/lispref/os.texi +++ b/doc/lispref/os.texi @@ -3232,6 +3232,10 @@ File Notifications @deffn Command file-notify-rm-all-watches Removes all existing file notification watches from Emacs. + +Use this command with caution, because it could have unexpected side +effects on packages relying on file watches. It is intended mainly +for debugging purposes, or when Emacs has been stalled. @end deffn @defun file-notify-valid-p descriptor --=-=-= Content-Type: text/plain Best regards, Michael. --=-=-=--