* emacs23 add-path problem
@ 2010-05-07 12:44 Piter_
2010-05-07 12:56 ` Piter_
2010-05-08 3:46 ` Evans Winner
0 siblings, 2 replies; 5+ messages in thread
From: Piter_ @ 2010-05-07 12:44 UTC (permalink / raw)
To: help-gnu-emacs
* Edit post
* Report this post
* Reply with quote
emacs problem
Postby Piter_ » 2010-05-07 12:19
I have installed emacs on testing debian.
aptitude install emacs23
i have some problem with load path.
i wand to add ~/,EMACS folder to load path.
(add-path "~/.EMACS")
But some how it does not find add-path function.
even if i search it with M-x describe-function.
the output is:
Warning (initialization): An error occurred while loading `/home/
petro/.emacs':
Symbol's function definition is void: add-path
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
Thanks in advance.
Petro
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: emacs23 add-path problem
2010-05-07 12:44 emacs23 add-path problem Piter_
@ 2010-05-07 12:56 ` Piter_
2010-05-08 3:46 ` Evans Winner
1 sibling, 0 replies; 5+ messages in thread
From: Piter_ @ 2010-05-07 12:56 UTC (permalink / raw)
To: help-gnu-emacs
Here is the output of (message "%s" load-path):
Warning (initialization): An error occurred while loading `/home/
petro/.emacs':
(/usr/share/emacs23/site-lisp/emms /usr/share/emacs/23.1/site-lisp/
auctex /usr/share/emacs23/site-lisp/org-mode /usr/share/emacs/site-
lisp/maxima /usr/share/emacs23/site-lisp/maxima /usr/share/emacs23/
site-lisp/dictionaries-common /usr/share/emacs/site-lisp/autoconf /usr/
share/emacs23/site-lisp/auctex /usr/share/emacs/site-lisp/auctex /etc/
emacs23 /etc/emacs /usr/local/share/emacs/23.1/site-lisp /usr/local/
share/emacs/site-lisp /usr/share/emacs/23.1/site-lisp /usr/share/emacs/
23.1/site-lisp/dictionaries-common /usr/share/emacs/23.1/site-lisp/
emms /usr/share/emacs/23.1/site-lisp/maxima /usr/share/emacs/23.1/site-
lisp/org-mode /usr/share/emacs/site-lisp /usr/share/emacs/23.1/leim /
usr/share/emacs/23.1/lisp /usr/share/emacs/23.1/lisp/url /usr/share/
emacs/23.1/lisp/textmodes /usr/share/emacs/23.1/lisp/progmodes /usr/
share/emacs/23.1/lisp/play /usr/share/emacs/23.1/lisp/org /usr/share/
emacs/23.1/lisp/nxml /usr/share/emacs/23.1/lisp/net /usr/share/emacs/
23.1/lisp/mh-e /usr/share/emacs/23.1/lisp/mail /usr/share/emacs/23.1/
lisp/language /usr/share/emacs/23.1/lisp/international /usr/share/
emacs/23.1/lisp/gnus /usr/share/emacs/23.1/lisp/eshell /usr/share/
emacs/23.1/lisp/erc /usr/share/emacs/23.1/lisp/emulation /usr/share/
emacs/23.1/lisp/emacs-lisp /usr/share/emacs/23.1/lisp/calendar /usr/
share/emacs/23.1/lisp/calc /usr/share/emacs/23.1/lisp/obsolete /usr/
share/emacs/23.1/leim)
"(/usr/share/emacs23/site-lisp/emms /usr/share/emacs/23.1/site-lisp/
auctex /usr/share/emacs23/site-lisp/org-mode /usr/share/emacs/site-
lisp/maxima /usr/share/emacs23/site-lisp/maxima /usr/share/emacs23/
site-lisp/dictionaries-common /usr/share/emacs/site-lisp/autoconf /usr/
share/emacs23/site-lisp/auctex /usr/share/emacs/site-lisp/auctex /etc/
emacs23 /etc/emacs /usr/local/share/emacs/23.1/site-lisp /usr/local/
share/emacs/site-lisp /usr/share/emacs/23.1/site-lisp /usr/share/emacs/
23.1/site-lisp/dictionaries-common /usr/share/emacs/23.1/site-lisp/
emms /usr/share/emacs/23.1/site-lisp/maxima /usr/share/emacs/23.1/site-
lisp/org-mode /usr/share/emacs/site-lisp /usr/share/emacs/23.1/leim /
usr/share/emacs/23.1/lisp /usr/share/emacs/23.1/lisp/url /usr/share/
emacs/23.1/lisp/textmodes /usr/share/emacs/23.1/lisp/progmodes /usr/
share/emacs/23.1/lisp/play /usr/share/emacs/23.1/lisp/org /usr/share/
emacs/23.1/lisp/nxml /usr/share/emacs/23.1/lisp/net /usr/share/emacs/
23.1/lisp/mh-e /usr/share/emacs/23.1/lisp/mail /usr/share/emacs/23.1/
lisp/language /usr/share/emacs/23.1/lisp/international /usr/share/
emacs/23.1/lisp/gnus /usr/share/emacs/23.1/lisp/eshell /usr/share/
emacs/23.1/lisp/erc /usr/share/emacs/23.1/lisp/emulation /usr/share/
emacs/23.1/lisp/emacs-lisp /usr/share/emacs/23.1/lisp/calendar /usr/
share/emacs/23.1/lisp/calc /usr/share/emacs/23.1/lisp/obsolete /usr/
share/emacs/23.1/leim)"
I dont really understand why it prints it twice.
I have done a search on hard drive and find no *.el file with add-path
in it.
Don't know what to do now.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: emacs23 add-path problem
2010-05-07 12:44 emacs23 add-path problem Piter_
2010-05-07 12:56 ` Piter_
@ 2010-05-08 3:46 ` Evans Winner
2010-05-08 4:01 ` Evans Winner
1 sibling, 1 reply; 5+ messages in thread
From: Evans Winner @ 2010-05-08 3:46 UTC (permalink / raw)
To: help-gnu-emacs
On May 7, 6:44 am, Piter_ <x.pi...@gmail.com> wrote:
> aptitude install emacs23
>
> i have some problem with load path.
>
> i wand to add ~/,EMACS folder to load path.
>
> (add-path "~/.EMACS")
>
> But some how it does not find add-path function.
> even if i search it with M-x describe-function.
>
> the output is:
> Warning (initialization): An error occurred while loading `/home/
> petro/.emacs':
>
> Symbol's function definition is void: add-path
Is 'add-path an Xemacs thing? I don't think it is something that
normally is part of Emacs 23. I think a fairly idiomatic way to do
this in Emacs is to use 'add-to-list -- since 'load-path is just a
list of strings, and 'add-to-list is nicer than pushing or setq-ing
and consing or something because it checks to make sure it's not
adding a duplicate before adding anything to the list. So something
like --
(add-to-list 'load-path "~/.EMACS")
-- might be work.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: emacs23 add-path problem
2010-05-08 3:46 ` Evans Winner
@ 2010-05-08 4:01 ` Evans Winner
2010-05-10 9:06 ` Piter_
0 siblings, 1 reply; 5+ messages in thread
From: Evans Winner @ 2010-05-08 4:01 UTC (permalink / raw)
To: help-gnu-emacs
On May 7, 9:46 pm, Evans Winner <ego...@gmail.com> wrote:
> (add-to-list 'load-path "~/.EMACS")
>
> -- might be work.
(might work better, I meant)
PS. 'add-path might be part of a library you normally use, too, that
you deleted or haven't installed on a new system or whatever. I think
something in apel defines it, for instance (based on a quick googling).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: emacs23 add-path problem
2010-05-08 4:01 ` Evans Winner
@ 2010-05-10 9:06 ` Piter_
0 siblings, 0 replies; 5+ messages in thread
From: Piter_ @ 2010-05-10 9:06 UTC (permalink / raw)
To: help-gnu-emacs
You where right about it.
add-path appeared after I installed w3m-el, which required apel.
But now I use add-to-list.
Thanks.
On May 8, 6:01 am, Evans Winner <ego...@gmail.com> wrote:
> On May 7, 9:46 pm, Evans Winner <ego...@gmail.com> wrote:
>
> > (add-to-list 'load-path "~/.EMACS")
>
> > -- might be work.
>
> (might work better, I meant)
>
> PS. 'add-path might be part of a library you normally use, too, that
> you deleted or haven't installed on a new system or whatever. I think
> something in apel defines it, for instance (based on a quick googling).
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-10 9:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-07 12:44 emacs23 add-path problem Piter_
2010-05-07 12:56 ` Piter_
2010-05-08 3:46 ` Evans Winner
2010-05-08 4:01 ` Evans Winner
2010-05-10 9:06 ` Piter_
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.