mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 15:56:35 -04:00
Fix false positive warnings in 'elisp-flymake-checkdoc' when narrowed
* lisp/progmodes/elisp-mode.el (elisp-flymake-checkdoc): Temporarily widen the buffer before calling 'checkdoc-current-buffer'. This prevents checkdoc from reporting missing file-level structural elements when the user has narrowed the buffer. (Bug#81258)
This commit is contained in:
parent
58e4dc3c53
commit
d365328e6d
|
|
@ -2618,11 +2618,12 @@ Calls REPORT-FN directly."
|
|||
(generate-new-buffer " *checkdoc-temp*")))
|
||||
(unwind-protect
|
||||
(save-excursion
|
||||
;; checkdoc-current-buffer can error if there are
|
||||
;; unbalanced parens, for example, but this shouldn't
|
||||
;; disable the backend (bug#29176).
|
||||
(ignore-errors
|
||||
(checkdoc-current-buffer t)))
|
||||
(without-restriction
|
||||
;; checkdoc-current-buffer can error if there are
|
||||
;; unbalanced parens, for example, but this shouldn't
|
||||
;; disable the backend (bug#29176).
|
||||
(ignore-errors
|
||||
(checkdoc-current-buffer t))))
|
||||
(kill-buffer checkdoc-diagnostic-buffer)))
|
||||
(funcall report-fn
|
||||
(cl-loop for (text start end _unfixable) in
|
||||
|
|
|
|||
Loading…
Reference in a new issue