emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: file-relative-name returns "." instead of "./"


From: Drew Adams
Subject: RE: file-relative-name returns "." instead of "./"
Date: Wed, 12 Oct 2005 09:52:58 -0700

        M-: (file-relative-name "" default-directory)
        This returns ".", but it should return "./" (IMO).

    (file-relative-name "." default-directory) returns ".".
    (file-relative-name "./" default-directory) returns "./".
    I think those are both correct.

    So which of those two cases is (file-relative-name "" default-directory)
    most like?  I am not sure.  It is not obvious that the
    current behavior is wrong.

I agree that it's not obvious.

Another logical value to return would be "". That certainly satisfies the
doc-string requirement that it is "equivalent to FILENAME when used with
that default directory as the default".





reply via email to

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