emacs-devel
[Top][All Lists]
Advanced

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

RE: File modes facilities.


From: Drew Adams
Subject: RE: File modes facilities.
Date: Fri, 21 Oct 2005 23:32:17 -0700

    > Don't load-file and load-library complete the file name
    > differently? Doesn't
    > load-library expect the library to be in the load-path, while
    > load-file is
    > content to load a file even if it is not in the load-path?
    > The (cons load-path load-suffixes) makes me think this only works for
    > load-path files.

    load-library seems to handle both load-path names and
    explicitly-specified pathnames. [The completion help is kind
    of screwy though -- tons of duplicate entries are show]

Right - both load-library and load-file just call `load'. I was speaking
only of the completion, responding to Richard, who mentioned that they both
did completion now.

It looks like they complete differently: `load-library' completes libraries
(as Richard said), wrt your load-path; `load-file' completes file names, wrt
the default-directory.

I think it's good to have these two different kinds of completion (that is,
two different commands), even though the aim in both cases is to load a Lisp
file, and both will accept an absolute file name as argument.





reply via email to

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