Xref: utzoo gnu.emacs.help:1340 comp.emacs:10231 Path: utzoo!utgpu!watserv1!watmath!uunet!snorkelwacker.mit.edu!apple!usc!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: yamada-sun!eric@AI.MIT.EDU (Eric Hanchrow) Newsgroups: gnu.emacs.help,comp.emacs Subject: appending to load-path I want to add a directory onto the existing load-path. so I have the following entry in my .emacs file: Message-ID: <9102261810.AA03171@> Date: 26 Feb 91 18:10:57 GMT References: <74918@bu.edu.bu.edu> Sender: daemon@tut.cis.ohio-state.edu Followup-To: gnu.emacs.help Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Lines: 18 (append load-path (list "/usr2/guest/avi/elisp")) I then "eval" the variable "load-path" and the load-path has not changed. That's because `append' does not modify its argument. In fact, only a few ELisp functions modify their arguments -- the only one I can think of that does is `setq'. Here's what I do: (setq load-path (cons (expand-file-name "~eric/elisp") (cons (expand-file-name "~eric/elisp/gnus") load-path))) ------------------------------------------------------------------------ |Eric Hanchrow sun.com!nosun!yamada-sun!eric | |Phase III Logic, Inc. cse.ogi.edu!yamada-sun!eric | |1600 N.W. 167th Place Beaverton, OR 97006-4800 USA | |Voice: (503)-645-0313 Fax: (503)-645-0207 as of 4-Oct-89| --------------Crackling-noises-OK--do-not-correct!----------------------