[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remove all existing file notification watches from Emacs
From: |
Michael Albinus |
Subject: |
Re: Remove all existing file notification watches from Emacs |
Date: |
Sat, 16 Oct 2021 18:13:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Michael Albinus <michael.albinus@gmx.de> 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
diff --git a/doc/lispref/os.texi b/doc/lispref/os.texi
index e3dcd6c778..5323f5f9a1 100644
--- 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
Best regards, Michael.
Re: Remove all existing file notification watches from Emacs, Stefan Kangas, 2021/10/16