all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Can't load .el files
@ 2005-04-22 10:18 JS
  2005-04-22 10:57 ` Peter Dyballa
       [not found] ` <mailman.2583.1114168337.2895.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: JS @ 2005-04-22 10:18 UTC (permalink / raw)


I have tried to put the following two .el files in my load path:

tabbar.el
pc-bufsw.el

In my .emacs file I have writtin:

(require 'tabbar)
(require 'pc-bufsw)

But when I restart emacs I get this error:


An error has occurred while loading `/home/johs/.emacs':

File error: "Cannot open load file", "tabbar"

To ensure normal operation, you should investigate the cause
of the error in your initialization file and remove it.  Start
Emacs with the `--debug-init' option to view a complete error
backtrace


-------------------------

I also have setnu.el in the same load path and it works fine, I have this in
my .emacs file for setnu:

(require 'setnu)
(global-set-key "\C-cl" 'setnu-mode)

Why can't I load the other modes?

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

* Re: Can't load .el files
  2005-04-22 10:18 Can't load .el files JS
@ 2005-04-22 10:57 ` Peter Dyballa
       [not found] ` <mailman.2583.1114168337.2895.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2005-04-22 10:57 UTC (permalink / raw)



Am 22.04.2005 um 12:18 schrieb JS:

> (require 'tabbar)
> (require 'pc-bufsw)
>

These files need to have provide staements. The require statement have 
to match what's being provided.

--
Greetings

   Pete

A common mistake that people make when trying to design something 
completely foolproof is to underestimate the ingenuity of complete 
fools.

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

* Re: Can't load .el files
       [not found] ` <mailman.2583.1114168337.2895.help-gnu-emacs@gnu.org>
@ 2005-04-22 11:35   ` JS
  2005-04-22 12:36     ` Peter Dyballa
                       ` (2 more replies)
  2005-04-22 15:54   ` Glenn Morris
  1 sibling, 3 replies; 10+ messages in thread
From: JS @ 2005-04-22 11:35 UTC (permalink / raw)


Peter Dyballa wrote:

> 
> Am 22.04.2005 um 12:18 schrieb JS:
> 
>> (require 'tabbar)
>> (require 'pc-bufsw)
>>
> 
> These files need to have provide staements. The require statement have
> to match what's being provided.

Finally some progress! I now have this in my .emacs file:

(provide 'tabbar)
(global-set-key [(control f10)] 'tabbar-local-mode)

When I restart emacs I get no errors, but when I press C-F10 I get this
"error":

"Symbol's function definition is void: tabbar-local-mode"

any idea on how to get this mode working?

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

* Re: Can't load .el files
  2005-04-22 11:35   ` JS
@ 2005-04-22 12:36     ` Peter Dyballa
       [not found]     ` <mailman.2589.1114173593.2895.help-gnu-emacs@gnu.org>
  2005-04-23  4:56     ` Tim X
  2 siblings, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2005-04-22 12:36 UTC (permalink / raw)



Am 22.04.2005 um 13:35 schrieb JS:

> any idea on how to get this mode working?
>

It's a bit easier than the problem with the hen and its egg, or 
otherwise 'round, the hen that emerged the egg. An Elisp file providing 
some useful things can advertise itself as a useful existence. Another 
Elisp file that feels it needs some of those useful features requires 
them.

--
Greetings

   Pete

"Let's face it; we don't want a free market economy either."
         James Farley, president, Coca-Cola Export Corp., 1959

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

* Re: Can't load .el files
       [not found]     ` <mailman.2589.1114173593.2895.help-gnu-emacs@gnu.org>
@ 2005-04-22 15:07       ` JS
  2005-04-22 15:27         ` B.T. Raven
                           ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: JS @ 2005-04-22 15:07 UTC (permalink / raw)


Peter Dyballa wrote:

> 
> Am 22.04.2005 um 13:35 schrieb JS:
> 
>> any idea on how to get this mode working?
>>
> 
> It's a bit easier than the problem with the hen and its egg, or
> otherwise 'round, the hen that emerged the egg. An Elisp file providing
> some useful things can advertise itself as a useful existence. Another
> Elisp file that feels it needs some of those useful features requires
> them.


Could you be a bit more specific I have no idea how to fix the problem.

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

* Re: Can't load .el files
  2005-04-22 15:07       ` JS
@ 2005-04-22 15:27         ` B.T. Raven
  2005-04-22 16:23         ` Thien-Thi Nguyen
  2005-04-22 23:32         ` Peter Dyballa
  2 siblings, 0 replies; 10+ messages in thread
From: B.T. Raven @ 2005-04-22 15:27 UTC (permalink / raw)



"JS" <d44sf@44ada.com> wrote in message
news:d4b3su$dte$2@news.net.uni-c.dk...
> Peter Dyballa wrote:
>
> >
> > Am 22.04.2005 um 13:35 schrieb JS:
> >
> >> any idea on how to get this mode working?
> >>
> >
> > It's a bit easier than the problem with the hen and its egg, or
> > otherwise 'round, the hen that emerged the egg. An Elisp file
providing
> > some useful things can advertise itself as a useful existence.
Another
> > Elisp file that feels it needs some of those useful features
requires
> > them.
>
>
> Could you be a bit more specific I have no idea how to fix the
problem.

What Peter is providing here might be called "Zen and the Art of
Software Maintenance." What is required here is to zero in on the
penultimate word of the last sentence of his first (and last) paragraph.

Ed, feeling required to provide an edifying remark on the one true
editor (arcanely).

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

* Re: Can't load .el files
       [not found] ` <mailman.2583.1114168337.2895.help-gnu-emacs@gnu.org>
  2005-04-22 11:35   ` JS
@ 2005-04-22 15:54   ` Glenn Morris
  1 sibling, 0 replies; 10+ messages in thread
From: Glenn Morris @ 2005-04-22 15:54 UTC (permalink / raw)


Peter Dyballa wrote:

> These files need to have provide staements. The require statement have
> to match what's being provided.

If the problem was just a missing provide, the error message would say
"required feature `foo' was not provided".

The "cannot open load file" error means the file is not in the
load-path (or is unreadable).

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

* Re: Can't load .el files
  2005-04-22 15:07       ` JS
  2005-04-22 15:27         ` B.T. Raven
@ 2005-04-22 16:23         ` Thien-Thi Nguyen
  2005-04-22 23:32         ` Peter Dyballa
  2 siblings, 0 replies; 10+ messages in thread
From: Thien-Thi Nguyen @ 2005-04-22 16:23 UTC (permalink / raw)


JS <d44sf@44ada.com> writes:

> Could you be a bit more specific
> I have no idea how to fix the problem.

one way is to figure out how to fix the problem
generally, then apply those techniques to this problem.

debugging your ~/.emacs is like debugging anything else
that accumulates past a threshold of desirable behavior:
revert to pristine and add piecemeal until the threshold
is met.  that which you have added last is where you then
focus your attention.

(unlike "the solution to bad speech is more speech", the
solution to bad ~/.emacs is usually not more ~/.emacs.)

this paring down phase (described above) can be done in
various ways, but is important because focus is critical
for the next phase: application of the Scientific Method,
the bull-dozer of all problem solvers (according to Pirsig).

applying the scientific method doesn't mean you have to
give up the superstitious method (i.e., casting strange
spells and muttering arcane incantations), which is your
current approach, from what i've gathered skimming this
thread.  however, if you can place the superstition on
hold for a bit, it may come back and delight you later
as some kind of aesthetically pleasing spiritual tinge
accompanying the muscle-memory of practice.  (or perhaps
not -- ymmv.)

anyway, good luck w/ your quest for commenting!

thi

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

* Re: Can't load .el files
  2005-04-22 15:07       ` JS
  2005-04-22 15:27         ` B.T. Raven
  2005-04-22 16:23         ` Thien-Thi Nguyen
@ 2005-04-22 23:32         ` Peter Dyballa
  2 siblings, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2005-04-22 23:32 UTC (permalink / raw)



Am 22.04.2005 um 17:07 schrieb JS:

> Could you be a bit more specific I have no idea how to fix the problem.
>

The Elisp file has to provide itself (and the features it contains) to 
the Elisp world in order another Elisp file can require it (and the 
features it contains). Without provision there's loading left.

More at C-h f provide RET and C-h f require RET. Or find-grep.

--
Greetings

   Pete

Math illiteracy affects 7 out of every 5 Americans.

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

* Re: Can't load .el files
  2005-04-22 11:35   ` JS
  2005-04-22 12:36     ` Peter Dyballa
       [not found]     ` <mailman.2589.1114173593.2895.help-gnu-emacs@gnu.org>
@ 2005-04-23  4:56     ` Tim X
  2 siblings, 0 replies; 10+ messages in thread
From: Tim X @ 2005-04-23  4:56 UTC (permalink / raw)


JS <d44sf@44ada.com> writes:

> Peter Dyballa wrote:
>
>> 
>> Am 22.04.2005 um 12:18 schrieb JS:
>> 
>>> (require 'tabbar)
>>> (require 'pc-bufsw)
>>>
>> 
>> These files need to have provide staements. The require statement have
>> to match what's being provided.
>
> Finally some progress! I now have this in my .emacs file:
>
> (provide 'tabbar)
> (global-set-key [(control f10)] 'tabbar-local-mode)
>
> When I restart emacs I get no errors, but when I press C-F10 I get this
> "error":
>
> "Symbol's function definition is void: tabbar-local-mode"
>
> any idea on how to get this mode working?

The (provide ...) statements need to be in the library file your
trying to load, not in your .emacs. They are telling emacs that the
library file "provides" some feature. You then put the corresponding
(require ...) statements in your .emacs to tell emacs that you require
that feature. 

Tim

-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!

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

end of thread, other threads:[~2005-04-23  4:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-22 10:18 Can't load .el files JS
2005-04-22 10:57 ` Peter Dyballa
     [not found] ` <mailman.2583.1114168337.2895.help-gnu-emacs@gnu.org>
2005-04-22 11:35   ` JS
2005-04-22 12:36     ` Peter Dyballa
     [not found]     ` <mailman.2589.1114173593.2895.help-gnu-emacs@gnu.org>
2005-04-22 15:07       ` JS
2005-04-22 15:27         ` B.T. Raven
2005-04-22 16:23         ` Thien-Thi Nguyen
2005-04-22 23:32         ` Peter Dyballa
2005-04-23  4:56     ` Tim X
2005-04-22 15:54   ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.