Message1999

Author adrian
Recipients
Date 2009-11-21.19:59:31
Content
I have a patch for the crash, but it shows and arguable regression in 
bevavior against 21.4.19.

Old behavior of f-n-d was to return non-existent drive unmodified.

New behavior rerturns nil in such cases.

docstring says to return nil if FILENAME does not include a directory.

This leaves some room for mis-interpretation.

Consequentially C-x d f : RET will wipe that entry on completion, where 
old behavior left it intact and said [No match] after it.

I'd appreciate your opinions.

Regards,
Adrian

With my fix (courtesy Mozilla project) :

(file-name-directory "c:")
"C:\\Programme\\XEmacs\\XEmacs-21.5-b29\\i586-pc-win32\\"
(file-name-directory "f:")
nil
(file-name-directory "NUL")
nil
(file-name-directory "/")
"/"
(file-name-directory "\\")
"\\"

21.4.19

(file-name-directory "c:")
"C:\\Hacking\\cvs.xemacs.org\\XEmacs\\xemacs-21.4\\src\\"
(file-name-directory "f:")
"f:"
(file-name-directory "NUL")
nil
(file-name-directory "/")
"/"
(file-name-directory "\\")
"\\"
Files
File name Uploaded
nt.c-2009-11-21T205718+0100.patch adrian, 2009-11-21.19:59:31
History
Date User Action Args
2009-11-21 19:59:31adrianlinkissue634 messages
2009-11-21 19:59:31adriancreate