I started a new question on this topic yesterday, and deleted it because I thought I had it solved. No, I'm still confused about exactly how require
works. In my situation I have a file calctest.el
in a path that load-path
sees. Here is the simple file:
(defun calctest ()
(calc-eval "deg(37@ 26' 36.42\")"))
(provide 'calctest)
Now, if I call (require 'calctest)
in the scratch buffer, I get an error:
Required feature `calctest' was not provided". . .
This is even after a successful (load-library "calctest")
and a test to see if it is loaded
(calctest) ==>
"37.44345"
But if I do a load-file
on calctest.el
, then do (require 'calctest)
it "sees" it and "loads" it (again?). Why will a require
not simply load my calctest
? What am I missing here?