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

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

RE: [External] : Re: Locating file via load-path


From: Drew Adams
Subject: RE: [External] : Re: Locating file via load-path
Date: Thu, 8 Aug 2024 22:30:02 +0000

> > Some people get confused over the args to` add-to-list',
> > in particular, that it's a function, so it evaluates its
> > args, so if you want to provide a variable literally
> > then you need to quote it.
> 
> Are you referring to quoting LIST-VAR ?

Yes.

> add-to-list expects the first argument to be the
> symbol of a list variable, not the list itself.

Yes.

Which is why, if you want to pass a variable's
symbol literally, you need to quote it: 'SYMBOL
evals to SYMBOL.

Arg LIST-VAR in code can be any sexp.  It need not
be something as obvious as 'var.

reply via email to

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