summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/checkdoc.el
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2021-09-01 23:45:53 +0100
committerJoão Távora <joaotavora@gmail.com>2021-09-14 12:26:25 +0100
commit4633e02726fbd683332eb64dee97b109aef4361f (patch)
tree3902ee68b1da8e8c896bd56a23dca0e16688260c /lisp/emacs-lisp/checkdoc.el
parent79eb840753edb2dd9e0bf1d4befb8e3e1275e009 (diff)
downloademacs-4633e02726fbd683332eb64dee97b109aef4361f.tar.gz
emacs-4633e02726fbd683332eb64dee97b109aef4361f.tar.bz2
emacs-4633e02726fbd683332eb64dee97b109aef4361f.zip
Add support for project-wide diagnostics in Flymake (bug#50244)
This is done with two new concepts: "foreign diagnostics" and "list-only diagnostics". The manual has been updated with a description of these new concepts. * doc/misc/flymake.texi (Flymake utility functions): Explain creation of foreign diagnostics. (Foreign and list-only diagnostics): New subsection. (Listing diagnostics): New subsection. * lisp/progmodes/flymake.el (Version): Bump to 1.2.1 (project): Require project. (flymake--diag): Add new slots 'orig-beg' and 'orig-end'. Rename 'buffer' slot to 'locus'. (flymake-make-diagnostic): Rework docstring. Accept stringp LOCUS arg. (flymake-diagnostic-beg, flymake-diagnostic-end) (flymake-diagnostic-buffer): Simplify definition. (flymake--equal-diagnostic-p): New helper (flymake--highlight-line): Rework. Accept FOREIGN arg. (flymake--state): Work docstring. Add new slot 'foreign-diags' (flymake--handle-report): Call flymake--update-diagnostics-listings. (flymake--handle-report): New helper. (flymake--mode): Forward declare. (flymake--handle-report): Rework for foreign diagnostics. (flymake-mode): When turning on, notice any Flymake diagnostics for current buffer. When turning off update diagnostics listings. (flymake-kill-buffer-hook): Turn off flymake explicitly before killing. (flymake--mode-line-counter): Use flymake-diagnostics to collect diagnostics. (flymake-show-diagnostic): Visit buffer of file-specific diagnostic. (flymake--tabulated-entries-1): New helper extracted from flymake--diagnostic-buffer-entries. (flymake--diagnostics-buffer-entries): Rework. (flymake--diagnostics-base-tabulated-list-format): New helper. (flymake--diagnostics-buffer-name): Adjust. (flymake-list-only-diagnostics): New variable. (flymake--project-diagnostic-list-project): New variable. (flymake--clear-list-only-diagnostics): New helper. (flymake-project-diagnostics-mode): New major mode. (flymake--project-diagnostics) (flymake--project-diagnostics-entries) (flymake--project-diagnostics-buffer): New helpers. (flymake-show-project-diagnostics): New command. (flymake--update-diagnostics-listings): New helper. (flymake-show-buffer-diagnostics): Renamed from flymake-diagnostics-buffer. * etc/NEWS: Mention change.
Diffstat (limited to 'lisp/emacs-lisp/checkdoc.el')
0 files changed, 0 insertions, 0 deletions