From: "Rudolf Adamkovič" <salutis@me.com>
To: emacs-devel@gnu.org
Subject: The annotated example of a complete working Flymake backend leaves process buffers around
Date: Sat, 23 Oct 2021 09:17:10 +0200 [thread overview]
Message-ID: <m2sfws2osp.fsf@me.com> (raw)
I noticed that the "annotated example of a complete working Flymake backend" at
<https://www.gnu.org/software/emacs/manual/html_mono/flymake.html#Backend-functions>
leaves zombie buffers around. I traced the problem down to
┌────
│ (when (eq 'exit (process-status proc)) …
└────
The backend kills the process buffer on `'exit' but not on `'signal', which happens when Flymake kills an obsolete in-progress check. I fixed the problem locally with
┌────
│ (let ((status (process-status proc)))
│ (when (or (eq status 'exit) (eq status 'signal))
│ …
└────
I think we should fix the Flymake manual as well.
Rudy
--
"'Contrariwise,' continued Tweedledee, 'if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic.'" -- Lewis Carroll, Through the Looking Glass
Rudolf Adamkovič <salutis@me.com>
Studenohorská 25
84103 Bratislava
Slovakia
[he/him]
next reply other threads:[~2021-10-23 7:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-23 7:17 Rudolf Adamkovič [this message]
2021-10-23 7:43 ` The annotated example of a complete working Flymake backend leaves process buffers around Manuel Uberti
2021-10-23 7:47 ` Stefan Kangas
2021-10-24 20:05 ` Rudolf Adamkovič
2021-10-25 8:23 ` João Távora
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2sfws2osp.fsf@me.com \
--to=salutis@me.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.