unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* (require 'filename) doesn't find the file
@ 2017-03-10  9:17 hector
  2017-03-10  9:37 ` tomas
  2017-03-10  9:38 ` hector
  0 siblings, 2 replies; 6+ messages in thread
From: hector @ 2017-03-10  9:17 UTC (permalink / raw)
  To: help-gnu-emacs

The file called BASENAME.el that I want to (require) is in the load-path.
If I add to it the line

(provide 'basename)

it works.

But if I remove the line when I try to compile it says:

syntax.el:26:1:Error: Required feature `basename' was not provided

The part that I think isn't working:
If FEATURE is not a member of the list `features', then the feature
is not loaded; so load the file FILENAME.

Why doesn't it find the file even if it does not contain a (provide)?

I searched for an answer in the list but couldn't find it.
The topic "Requiring elisp that comes with Emacs" comes close
but not to the point.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-03-10 10:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-10  9:17 (require 'filename) doesn't find the file hector
2017-03-10  9:37 ` tomas
2017-03-10 10:26   ` hector
2017-03-10 10:46     ` tomas
2017-03-10  9:38 ` hector
2017-03-10  9:55   ` tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).