Using require
with packages that are not in the default load-path
gives me the error "Cannot open load file: No such file or directory, ". However a normal load
works, but I get strange, seemingly erroneous warnings when using it. Normal packages work fine.
Example:
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime-autoloads)
load
invocation here. The documentation ofrequire
indicates that it usesload
if the feature is not loaded. Something isn't adding up.load-path
says, "This list is consulted by the ‘require’ function." :)load
invocation is just(load "slime-autoloads")
, instead of the require.