bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23643: 25.0.50; Documentation of file-name-sans-extension seems wron


From: Eli Zaretskii
Subject: bug#23643: 25.0.50; Documentation of file-name-sans-extension seems wrong
Date: Sun, 29 May 2016 18:02:22 +0300

> From: Thomas Emile Bourgeat <bthom@mit.edu>
> Date: Sat, 28 May 2016 22:04:40 -0400
> 
> (file-name-sans-extension "foo.bar") produces "foo" when the
> documentation suggests it should produce "foo.":
> 
> > Return FILENAME sans final "extension".
> > The extension, in a file name, is the part that follows the last ‘.’,
> > except that a leading ‘.’, if any, doesn’t count.

Thanks for the report.  I'm not quite sure which part of the doc
string led you to believe that "foo." should be produced: the
"follows" part or the "leading `.'" part.  So I went ahead and
clarified both for the next release.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]