help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs23 add-path problem


From: Evans Winner
Subject: Re: emacs23 add-path problem
Date: Fri, 7 May 2010 20:46:39 -0700 (PDT)
User-agent: G2/1.0

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]