From unknown Fri Jun 13 10:32:07 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#34760: 27.0.50; Suboptimal error message for Checkdoc on an empty file
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Tue, 05 Mar 2019 19:23:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 34760
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: 34760@debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.155181373721548
(code B ref -1); Tue, 05 Mar 2019 19:23:02 +0000
Received: (at submit) by debbugs.gnu.org; 5 Mar 2019 19:22:17 +0000
Received: from localhost ([127.0.0.1]:33458 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1h1Fdp-0005bT-8F
for submit@debbugs.gnu.org; Tue, 05 Mar 2019 14:22:17 -0500
Received: from eggs.gnu.org ([209.51.188.92]:52619)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1h1Fdm-0005bE-QW
for submit@debbugs.gnu.org; Tue, 05 Mar 2019 14:22:15 -0500
Received: from lists.gnu.org ([209.51.188.17]:37762)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1h1Fdh-0002yB-Hp
for submit@debbugs.gnu.org; Tue, 05 Mar 2019 14:22:09 -0500
Received: from eggs.gnu.org ([209.51.188.92]:38759)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1h1Fdg-0004iI-CR
for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 14:22:09 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,URIBL_BLOCKED autolearn=disabled
version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1h1Fdf-0002tK-CP
for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 14:22:08 -0500
Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:40813)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1h1Fdf-0002pQ-2l
for bug-gnu-emacs@gnu.org; Tue, 05 Mar 2019 14:22:07 -0500
Received: by mail-wr1-x436.google.com with SMTP id q1so10760735wrp.7
for ; Tue, 05 Mar 2019 11:22:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=LvbHQFQSTsvxMIPIZltYrkzKaKZSofDj8z8Fp8Ao30k=;
b=HQbAql3tmfvnaDwU0XLs3a+4T6kKIwIzEXSZGnghxbKhO5dCns+euQZJdGajlt1pWM
TFLMYouMYf5udzZ8xTS4cwhrdEmeWu7fBHi/qFM3f4rP8Ele6EDQtjvP08ttzuJVB97o
NDQWx9IW/0iBfPDglcpPXg79vCK20H8EXD5BXgZ01sF6TnvX3wKiA9rR0hS0E4P34YxC
8uAiESIcHUUQsJ7W3oYZpLU9bTtgG1MpK2HUKcSy9jQUhRTIKMvFeVjL2Y0OGeKnq4C2
WNo6DRA6hITWE86kUwFk6jL4u6QKCx6UL1qev9qGHJaokW50FUs1AtNUehKdO8QQfVer
s7Tw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version
:content-transfer-encoding;
bh=LvbHQFQSTsvxMIPIZltYrkzKaKZSofDj8z8Fp8Ao30k=;
b=IoWtprrcPnsh4F4x35GquXVuPA5MuJl7WR3tHnNsmJV29oX1uU/INQlhTCu5GnfOos
vPP6kSkp4aF+rMhlB9ZdhqmEzyEN967J5jjnMMu5SKPQVxMxddFhBZfzaJBVKZvWJLLj
E2EeVCtzPThb4qN/LxqA+e5k7WwJIMIcS8MiX11mHeRkDrdmDrRTjiZs0Zjb1Eimas49
twYbfY5RmAeKTWno+dypAtf8igCtbV1sULo+/U+HtxFQe6P1lV0NNN8xJCIx1HKQ1HZm
Qq1/Y6epBmAcbDUIRi9GpG1tYQi37PcZzaW4uX13KHA2rWw46VSGlObPCDknRr+Yda46
VCTQ==
X-Gm-Message-State: APjAAAW7xKsEaemIFef7mZ3NZS1qcHopMEF5pZUleK+hCNtyA2+2kVE+
B2V39XXof+YWPwbsvIIVr5Z8HYzA
X-Google-Smtp-Source: APXvYqyfHmUwWEQHcmYaRPpkaU9JELnhPYeDuK10L9Ho0O4KZetjJpH5eA7ee5oSX7w16rUDhlckug==
X-Received: by 2002:adf:e5c5:: with SMTP id a5mr312371wrn.13.1551813724428;
Tue, 05 Mar 2019 11:22:04 -0800 (PST)
Received: from phst-desktop.muc.corp.google.com
([2a00:79e0:15:10:da73:c08c:d5e2:512d])
by smtp.gmail.com with ESMTPSA id 12sm630802wme.25.2019.03.05.11.22.03
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Tue, 05 Mar 2019 11:22:03 -0800 (PST)
From: Philipp Stephani
Date: Tue, 05 Mar 2019 20:22:02 +0100
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-Received-From: 2a00:1450:4864:20::436
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: 1. Create an empty test file: touch /tmp/empty.el 2. emacs
-Q /tmp/empty.el
Content analysis details: (1.2 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was
blocked. See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
for more information. [URIs: x.org]
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
in digit (p.stephani2[at]gmail.com)
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (p.stephani2[at]gmail.com)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: 0.2 (/)
1. Create an empty test file:
touch /tmp/empty.el
=20=20=20
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).
In GNU Emacs 27.0.50 (build 53, x86_64-pc-linux-gnu, GTK+ Version 3.24.2)
of 2019-03-05
Repository revision: 1c349c62305d432abf0fa2b6e3f5d754fe4cab79
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux buster/sid
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --enable-gcc-warnings=3Dwarn-only
--enable-gtk-deprecation-warnings --without-pop --with-mailutils
--enable-checking --enable-check-lisp-object-type --with-modules
'CFLAGS=3D-O0 -ggdb3''
Configured features:
XPM JPEG TIFF GIF PNG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS
FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS
LIBSYSTEMD JSON PDUMPER GMP
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec epa epg epg-config gnus-util
rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils phst skeleton derived edmacro
kmacro pcase ffap thingatpt url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache json map url-vars
subr-x rx gnutls puny seq byte-opt gv bytecomp byte-compile cconv dbus
xml cl-loaddefs cl-lib elec-pair mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)
Memory information:
((conses 16 59174 6779)
(symbols 48 7772 1)
(strings 32 19984 2119)
(string-bytes 1 656314)
(vectors 16 11248)
(vector-slots 8 146260 6062)
(floats 8 23 23)
(intervals 56 211 0)
(buffers 992 12))
--=20
Google Germany GmbH
Erika-Mann-Stra=C3=9Fe 33
80636 M=C3=BCnchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Gesch=C3=A4ftsf=C3=BChrer: Paul Manicle, Halimah DeLaine Prado
If you received this communication by mistake, please don=E2=80=99t forward=
it to
anyone else (it may contain confidential or privileged information), please
erase all copies of it, including all attachments, and please let the sender
know it went to the wrong person. Thanks.
From unknown Fri Jun 13 10:32:07 2025
X-Loop: help-debbugs@gnu.org
Subject: bug#34760: 27.0.50; Suboptimal error message for Checkdoc on an empty file
Resent-From: Lars Ingebrigtsen
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Tue, 09 Jul 2019 16:25:01 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 34760
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
To: Philipp Stephani
Cc: 34760@debbugs.gnu.org
Received: via spool by 34760-submit@debbugs.gnu.org id=B34760.156268949231239
(code B ref 34760); Tue, 09 Jul 2019 16:25:01 +0000
Received: (at 34760) by debbugs.gnu.org; 9 Jul 2019 16:24:52 +0000
Received: from localhost ([127.0.0.1]:33968 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hksvD-00087m-Ou
for submit@debbugs.gnu.org; Tue, 09 Jul 2019 12:24:52 -0400
Received: from quimby.gnus.org ([80.91.231.51]:49118)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1hksvC-00087c-61
for 34760@debbugs.gnu.org; Tue, 09 Jul 2019 12:24:50 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from )
id 1hksv6-00076a-7X; Tue, 09 Jul 2019 18:24:46 +0200
From: Lars Ingebrigtsen
References:
Date: Tue, 09 Jul 2019 18:24:43 +0200
In-Reply-To: (Philipp
Stephani's message of "Tue, 05 Mar 2019 20:22:02 +0100")
Message-ID: <87r26zrx9w.fsf@mouse.gnus.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: Philipp Stephani 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-fi [...]
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
Philipp Stephani 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
From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 09 12:24:55 2019
Received: (at control) by debbugs.gnu.org; 9 Jul 2019 16:24:55 +0000
Received: from localhost ([127.0.0.1]:33971 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1hksvH-000883-7m
for submit@debbugs.gnu.org; Tue, 09 Jul 2019 12:24:55 -0400
Received: from quimby.gnus.org ([80.91.231.51]:49132)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1hksvF-00087v-AA
for control@debbugs.gnu.org; Tue, 09 Jul 2019 12:24:53 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.89) (envelope-from ) id 1hksvC-00076h-Q4
for control@debbugs.gnu.org; Tue, 09 Jul 2019 18:24:52 +0200
Date: Tue, 09 Jul 2019 18:24:50 +0200
Message-Id: <87pnmjrx9p.fsf@mouse.gnus.org>
To: control@debbugs.gnu.org
From: Lars Ingebrigtsen
Subject: control message for bug #34760
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
@@CONTACT_ADDRESS@@ for details.
Content preview: tags 34760 fixed close 34760 27.1 quit
Content analysis details: (-2.9 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -1.0 (-)
tags 34760 fixed
close 34760 27.1
quit