unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#71840: 30.0.60; Reference to non-existent variable in c-opt-extra-label-key docstring
@ 2024-06-29 13:12 Stefan Kangas
  2024-06-30 20:33 ` Alan Mackenzie
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2024-06-29 13:12 UTC (permalink / raw)
  To: 71840; +Cc: Alan Mackenzie

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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#71840: 30.0.60; Reference to non-existent variable in c-opt-extra-label-key docstring
  2024-06-29 13:12 bug#71840: 30.0.60; Reference to non-existent variable in c-opt-extra-label-key docstring Stefan Kangas
@ 2024-06-30 20:33 ` Alan Mackenzie
  2024-06-30 23:31   ` Stefan Kangas
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Mackenzie @ 2024-06-30 20:33 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: acm, 71840

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).





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#71840: 30.0.60; Reference to non-existent variable in c-opt-extra-label-key docstring
  2024-06-30 20:33 ` Alan Mackenzie
@ 2024-06-30 23:31   ` Stefan Kangas
  2024-07-01 20:45     ` Alan Mackenzie
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2024-06-30 23:31 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: 71840

Alan Mackenzie <acm@muc.de> writes:

> Hello, Stefan.
>
> On Sat, Jun 29, 2024 at 06:12:10 -0700, Stefan Kangas wrote:
>> 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?  :-)

I have a (very ugly and very slow) shell script that looks for symbols
that only show up once in our sources.  Many of them turn out to be
typos, though there is also a long list of false positives that it
ignores.

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

Thanks!





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#71840: 30.0.60; Reference to non-existent variable in c-opt-extra-label-key docstring
  2024-06-30 23:31   ` Stefan Kangas
@ 2024-07-01 20:45     ` Alan Mackenzie
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Mackenzie @ 2024-07-01 20:45 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 71840-done, acm

Hello, Stefan.

On Sun, Jun 30, 2024 at 16:31:02 -0700, Stefan Kangas wrote:
> Alan Mackenzie <acm@muc.de> writes:

> > On Sat, Jun 29, 2024 at 06:12:10 -0700, Stefan Kangas wrote:
> >> 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?  :-)

> I have a (very ugly and very slow) shell script that looks for symbols
> that only show up once in our sources.  Many of them turn out to be
> typos, though there is also a long list of false positives that it
> ignores.

I'm impressed.

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

The fix is now committed to the emacs-30 branch.  I'm closing the bug
with this post.

> Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-01 20:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-29 13:12 bug#71840: 30.0.60; Reference to non-existent variable in c-opt-extra-label-key docstring Stefan Kangas
2024-06-30 20:33 ` Alan Mackenzie
2024-06-30 23:31   ` Stefan Kangas
2024-07-01 20:45     ` Alan Mackenzie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).