emacs-devel
[Top][All Lists]
Advanced

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

Re: Bug?: (file-name-extension "some.html~") gives "html"


From: Kevin Rodgers
Subject: Re: Bug?: (file-name-extension "some.html~") gives "html"
Date: Wed, 10 May 2006 15:02:54 -0600
User-agent: Thunderbird 1.5.0.2 (Windows/20060308)

Lennart Borgman wrote:
Luc Teirlinck wrote:
Yes, it is documented in the Elisp manual (but not in the docstring).
>From `(elisp)File Name Components':

 -- Function: file-name-extension filename &optional period
     This function returns FILENAME's final "extension", if any, after
     applying `file-name-sans-versions' to remove any version/backup
     part.

Then maybe a line saying something like

   This function removes any version/backup parts in the file name first.

could be added to the doc string?

If so, file-name-sans-extension should get the same treatment, for the
same reason.

BTW, why does file-name-extension accept an optional PERIOD argument
to include the extension delimiter in the result, but
file-name-sans-extension does not?

Symmetry baby,
--
Kevin





reply via email to

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