# HG changeset patch # User Richard M. Stallman # Date 1147906475 0 # Node ID 3279e0cf893a3cc4f18f164e2b9faaf0a1aaff5f # Parent 3cde28b591e870115615d12db305b14d728dd245 (file-name-extension): Doc fix. diff -r 3cde28b591e8 -r 3279e0cf893a lisp/files.el --- a/lisp/files.el Wed May 17 22:53:23 2006 +0000 +++ b/lisp/files.el Wed May 17 22:54:35 2006 +0000 @@ -3062,6 +3062,7 @@ (defun file-name-extension (filename &optional period) "Return FILENAME's final \"extension\". The extension, in a file name, is the part that follows the last `.', +excluding version numbers and backup suffixes, except that a leading `.', if any, doesn't count. Return nil for extensionless file names such as `foo'. Return the empty string for file names such as `foo.'.