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

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

Re: two ways of adding a path to the list variable load-path. equivalent


From: Kevin Rodgers
Subject: Re: two ways of adding a path to the list variable load-path. equivalent?
Date: Thu, 21 May 2009 21:45:35 -0600
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

Peter Dyballa wrote:

Am 19.05.2009 um 19:33 schrieb Nobuko Three:

(setq load-path (cons "~/elisp/" load-path))

2.
(add-to-list 'load-path "~/elisp/")


The latter does *not* add the new element on top when this element already exists somewhere in the list. So the latter form is preferable.

Unless the intent is to make sure the element is first in the list.

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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