[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove all existing file notification watches from Emacs

From: Stefan Monnier
Subject: Re: Remove all existing file notification watches from Emacs
Date: Sat, 16 Oct 2021 10:09:50 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> [ 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.

That qualifies as debugging for me ;-)

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.

So it's OK to use when the alternative is to kill Emacs, but it should
come with some warnings (in a pessimistic scenario I can see some blog
mentioning this command alongside the usual "set your GC threshold super
high" and a few other things, in the toolbox of "make your Emacs more


reply via email to

[Prev in Thread] Current Thread [Next in Thread]