Protect elisp-flymake-checkdoc against boundless diagnostics
These would be the kind of "This file needs a ;;Code section" and such. * lisp/progmodes/elisp-mode.el (elisp-flymake-checkdoc): Resist checkdoc diagnostics with no end position.
This commit is contained in:
parent
87a2cfc085
commit
f0d2b92f8b
1 changed files with 2 additions and 1 deletions
|
@ -1720,7 +1720,8 @@ Calls REPORT-FN directly."
|
|||
collect
|
||||
(flymake-make-diagnostic
|
||||
(current-buffer)
|
||||
start end :note text)))
|
||||
(or start 1) (or end (1+ (or start 1)))
|
||||
:note text)))
|
||||
collected))
|
||||
|
||||
(defun elisp-flymake--byte-compile-done (report-fn
|
||||
|
|
Loading…
Add table
Reference in a new issue