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: Lennart Borgman
Subject: Re: Bug?: (file-name-extension "some.html~") gives "html"
Date: Wed, 10 May 2006 21:45:14 +0200
User-agent: Thunderbird 1.5.0.2 (Windows/20060308)

Luc Teirlinck wrote:
Lennart Borgman wrote:

   Is the behaviour in the subject line correct? I have tested this on w32:

   GNU Emacs 22.0.50.1 (i386-mingw-nt5.0.2195) of 2006-05-01

If this is the correct behaviour then maybe the docstring should tell about it?

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.

Sincerely,

Luc.
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?




reply via email to

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