emacs-devel
[Top][All Lists]
Advanced

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

Re: Flymake refactored


From: Stefan Monnier
Subject: Re: Flymake refactored
Date: Thu, 05 Oct 2017 09:11:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> :sentinel
>> (lambda (p _ev)
> One of the things you must do here is check if your process is obsolete,
> i.e. if Flymake decided to launch another one in the meantime. A good
> way to do this is to check if 'p' is 'eq' to the buffer-local value of
> clang-flymake--procress.

While I agree that it should check whether `p` is obsolete (just in case
something went wrong elsewhere), `p` should have been killed when the
other process was launched, so this sentinel should only be called with
an obsolete `p` in response to such a kill.

BTW, it should also check `ev` in case the event is just that someone
suspended/resumed the background process.


        Stefan



reply via email to

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