GNU bug report logs - #71840
30.0.60; Reference to non-existent variable in c-opt-extra-label-key docstring

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Sat, 29 Jun 2024 13:13:01 UTC

Severity: minor

Found in version 30.0.60

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: acm <at> muc.de, 71840 <at> debbugs.gnu.org
Subject: bug#71840: 30.0.60; Reference to non-existent variable in c-opt-extra-label-key docstring
Date: Sun, 30 Jun 2024 20:33:25 +0000
Hello, Stefan.

On Sat, Jun 29, 2024 at 06:12:10 -0700, Stefan Kangas wrote:
> Severity: minor

> There is a reference to a variable `c-nonlabel-decl-prefix-re` in the
> `c-opt-extra-label-key` docstring (cc-langs.el:4400), but I can't find
> that variable anywhere in our tree.

How on Earth did you spot that?  :-)

Yes, it's true, that variable doesn't exist.  I've found the commit
where it came into the doc string (from 2003-11-21), and the variable
itself was not in that commit.  I can only assume that Martin (my
predecessor on CC Mode) created it as part of the patch, documented it,
then before committing the change decided it wasn't needed, but forgot
to amend the documentation.  Or something like that.

I'll fix the documentation in the next day or so.

Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 323 days ago.

Previous Next


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