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.