GNU bug report logs - #34760
27.0.50; Suboptimal error message for Checkdoc on an empty file

Previous Next

Package: emacs;

Reported by: Philipp Stephani <p.stephani2 <at> gmail.com>

Date: Tue, 5 Mar 2019 19:23:02 UTC

Severity: wishlist

Tags: fixed

Found in version 27.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 34760 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 34760 <at> debbugs.gnu.org
Subject: Re: bug#34760: 27.0.50;
 Suboptimal error message for Checkdoc on an empty file
Date: Tue, 09 Jul 2019 18:24:43 +0200
Philipp Stephani <p.stephani2 <at> 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




This bug report was last modified 5 years and 312 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.