[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug?: (file-name-extension "some.html~") gives "html"
From: |
Luc Teirlinck |
Subject: |
Re: Bug?: (file-name-extension "some.html~") gives "html" |
Date: |
Wed, 10 May 2006 11:22:03 -0500 (CDT) |
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.
Re: Bug?: (file-name-extension "some.html~") gives "html", Richard Stallman, 2006/05/10