unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60040: 29.0.50; flymake manual should document language support
@ 2022-12-13 18:20 Stefan Kangas
  2022-12-13 18:28 ` João Távora
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2022-12-13 18:20 UTC (permalink / raw)
  To: 60040; +Cc: João Távora

Severity: wishlist

Please consider adding a new chapter in (info "(flymake) Top") that
documents all built-in flymake support, and how to enable them
automatically.

I think such a chapter could also document the languages known to be
supported in packages on GNU ELPA and NonGNU ELPA.

It is currently hard to know which modes support flymake-mode, without
testing it in each mode.  For example, I don't see that
`flymake-texinfo' or `perl-flymake' are currently documented anywhere
outside of their docstrings.

You can use `M-x apropos-function RET flymake RET', of course, but that
requires users to know implementation details of flymake (how to
implement a backend), as well as know that the functions must be loaded
(or autoloaded) for that to work, and finally you need to filter out a
lot of internal flymake implementation details and similar.

Note in particular that this is useful whether or not it is already
documented in the documentation for the respective packages (which it
most often is not, AFAICT).

See also:
https://www.flycheck.org/en/29/languages.html#flycheck-languages





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#60040: 29.0.50; flymake manual should document language support
  2022-12-13 18:20 bug#60040: 29.0.50; flymake manual should document language support Stefan Kangas
@ 2022-12-13 18:28 ` João Távora
  2023-09-10 19:11   ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: João Távora @ 2022-12-13 18:28 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 60040

[-- Attachment #1: Type: text/plain, Size: 749 bytes --]

I don't think it's very useful to maintain this list by hand.

It's a duplication of information, and such things always
invariably end up outdated and useless.

I think it's more useful to write a program that collects
this information automatically.  The fact that you're
finding this task boring and repetitive is enough of a hint
that such a program can be written. I'd say start with
a dolist of known major modes and a temp buffer,
set the buffer in the major mode and check if there's
a buffer-local value of flymake-diagnostic-backends.

Also, given the advent of LSP, I think the trend is
for Flymake to be chiefly useful when connected
with something like Eglot.  Not exclusively so, but
rather predominantly so.

João

[-- Attachment #2: Type: text/html, Size: 1007 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#60040: 29.0.50; flymake manual should document language support
  2022-12-13 18:28 ` João Távora
@ 2023-09-10 19:11   ` Stefan Kangas
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2023-09-10 19:11 UTC (permalink / raw)
  To: João Távora; +Cc: 60040-done

João Távora <joaotavora@gmail.com> writes:

> Also, given the advent of LSP, I think the trend is
> for Flymake to be chiefly useful when connected
> with something like Eglot.  Not exclusively so, but
> rather predominantly so.

I think you're completely right here, but this should be documented
prominently.  So I've installed commit 9549612c53d on emacs-29.

Feel free to tweak, extend, rewrite, or improve it.  It's very brief as
is, but I didn't know what more to say.  Unfortunately, there's not much
need for a lot of documentation when things just work.  ;-)

On a separate note, perhaps this note doesn't need to be on the first
page in Emacs 30.1:

       Historically, Flymake used to accept diagnostics from a single
    backend.  Although obsolete, it is still functional.  To learn how
    to use and customize it, *note The legacy Proc backend::.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-10 19:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-13 18:20 bug#60040: 29.0.50; flymake manual should document language support Stefan Kangas
2022-12-13 18:28 ` João Távora
2023-09-10 19:11   ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).