GNU bug report logs -
#78983
30.1; Strange reference to "Emacs 10.31" in fileio.c
Previous Next
Reported by: Ulrich Müller <ulm <at> gentoo.org>
Date: Wed, 9 Jul 2025 16:45:05 UTC
Severity: normal
Found in version 30.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#78983: 30.1; Strange reference to "Emacs 10.31" in fileio.c
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 78983 <at> debbugs.gnu.org.
--
78983: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78983
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
> From: Ulrich Müller <ulm <at> gentoo.org>
> Cc: Ulrich Müller <ulm <at> gentoo.org>, 78983 <at> debbugs.gnu.org
> Date: Thu, 10 Jul 2025 12:38:16 +0200
>
> >>>>> On Thu, 10 Jul 2025, Eli Zaretskii wrote:
>
> > Anyway, I don't think 10.31 is a mistake. I think I asked Richard
> > back then. In particular, the initial commit of fileio.c into CVS,
> > from Apr 10, 1991 (which is _before_ the time stamp of fileio.c in
> > Emacs 18.59) already has this #ifdef'ed-away version, even though
> > Emacs 18.59's version of fileio.c does not. So there's more here than
> > meets the eye.
>
> I've now compared the #if-0-ed code from the initial version in git
> (commit 570d76241f16 from 1991-04-10) to the code in Emacs 18.52,
> 18.55, and 18.57. While none is a perfect match, 18.55 is close.
> Going back further in time (I've looked at 18.41 and 16.56), the
> differences become larger.
>
> A telltale sign are also the "#ifdef VMS" code blocks (in the initial
> git commit; they were removed later). VMS support was added in Emacs 18,
> so these code blocks wouldn't be present in any earlier version.
>
> So I still doubt that "version 10.31" theory.
I cannot remember why I wrote that, and couldn't find anything in my
email archives from back then to help me. But it isn't a simple typo,
since neither 19.31 nor 18.31 nor 1.31 (if interpreted as the CVS
version of fileio.c) fit the bill (I checked them all).
> > I can suggest to remove the version from the text, if this nit is
> > really deemed important. But I think we are splitting hair here.
> > I have just spent half an hour looking up old versions of fileio.c --
> > was that really worth it?
>
> Sorry about that. Feel free to close this bug then.
Done, after removing the offending version number from that comment.
> (I thought it was a no-brainer but apparently it is more
> complicated.)
Not sure what you expected -- that when pointed to my commit I will
not try to understand why I wrote that, and just agree with you on the
spot that I made such a strange mistake by typing a non-trivial wrong
version number? Is that what you would do in such a situation?
[Message part 3 (message/rfc822, inline)]
Fexpand_file_name has another copy below it in an #if 0 ... #endif
block, with the following comment:
/* PLEASE DO NOT DELETE THIS COMMENTED-OUT VERSION!
This is the old version of expand-file-name, before it was thoroughly
rewritten for Emacs 10.31. We leave this version here commented-out,
because the code is very complex and likely to have subtle bugs. If
bugs _are_ found, it might be of interest to look at the old code and
see what did it do in the relevant situation.
Don't remove this code: it's true that it will be accessible
from the repository, but a few years from deletion, people will
forget it is there. */
Maybe I am missing something, but I believe there never was an
Emacs 10.31. Version numbers went from 1.1 to 1.12; then the first
component was dropped and versions continued from 13.
So I looked into the history: The commented-out code existed already
in version 19.7 (but not in 18.59). It was then removed on 2001-10-22
and restored on 2001-10-25 in commit 4887597a1c52 by Eli, who also
added the above comment.
tl;dr Could the version reference be changed to "Emacs 19"?
This bug report was last modified 35 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.