[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#34760: 27.0.50; Suboptimal error message for Checkdoc on an empty fi
From: |
Lars Ingebrigtsen |
Subject: |
bug#34760: 27.0.50; Suboptimal error message for Checkdoc on an empty file |
Date: |
Tue, 09 Jul 2019 18:24:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Philipp Stephani <p.stephani2@gmail.com> writes:
> 1. Create an empty test file:
>
> touch /tmp/empty.el
>
> 2. emacs -Q /tmp/empty.el
>
> 3. M-x checkdoc
>
> 4. Answer the first question with 'n'.
>
> 5. Now you get an error message
>
> checkdoc-file-comments-engine: Search failed: ";;; .* --- .*
> "
>
> This is an internal error because checkdoc-file-comments-engine uses
> re-search-forward, but in one instance doesn't set the NOERROR
> argument. It would be better to catch this and report a nicer error (or
> no error).
Yup; I've now fixed this on the Emacs trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#34760: 27.0.50; Suboptimal error message for Checkdoc on an empty file,
Lars Ingebrigtsen <=