From: Evans Winner <ego111@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs23 add-path problem
Date: Fri, 7 May 2010 20:46:39 -0700 (PDT) [thread overview]
Message-ID: <cc4281eb-bcc8-4cc6-8bad-3b569deda8ee@34g2000prs.googlegroups.com> (raw)
In-Reply-To: 72dbd849-3884-4606-9bfc-a8099d1d4a3b@e1g2000yqe.googlegroups.com
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.
next prev parent reply other threads:[~2010-05-08 3:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-07 12:44 emacs23 add-path problem Piter_
2010-05-07 12:56 ` Piter_
2010-05-08 3:46 ` Evans Winner [this message]
2010-05-08 4:01 ` Evans Winner
2010-05-10 9:06 ` Piter_
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cc4281eb-bcc8-4cc6-8bad-3b569deda8ee@34g2000prs.googlegroups.com \
--to=ego111@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.