0

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)
3
  • Perhaps you can also add your load invocation here. The documentation of require indicates that it uses load if the feature is not loaded. Something isn't adding up. Commented Nov 14, 2022 at 19:18
  • Similarly, load-path says, "This list is consulted by the ‘require’ function." :) Commented Nov 14, 2022 at 19:21
  • @cyberbisson My load invocation is just (load "slime-autoloads"), instead of the require.
    – user39350
    Commented Nov 14, 2022 at 20:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.