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

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

bug#2445: 23.0.90; file name completion GCs a lot


From: Richard M Stallman
Subject: bug#2445: 23.0.90; file name completion GCs a lot
Date: Fri, 20 Mar 2009 18:52:44 -0400

    > I have a feeling that (file-name-completion "" "xmail/") ought to
    > first check (file-directory-p "xmail/") and return t if that does.

    No: if all files in xmail/ start with "aba", then the above should
    return "aba".

I am not convinced it should do that.  Maybe
(file-name-completion "xmail" "") should do that,
but I tend to think that (file-name-completion "" "xmail/"), with the
empty string as file name, should not complete anything.

There is a semantic confusion going on here.
The question that (try-completion "xmail/" table) answers
is not the question that its caller wants to ask.






reply via email to

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