[Top][All Lists]

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

RE: Using "Emacs Configure" **and** modifying .emacs

From: Drew Adams
Subject: RE: Using "Emacs Configure" **and** modifying .emacs
Date: Tue, 15 Aug 2017 15:18:57 -0700 (PDT)

> `customize-set-variable' should be used rather
> than setq. However that doesn't work - it won't
> evaluate, and the byte compiler - which doesn't
> mention the supposed "setq error" by the way -
> the byte compiler doesn't accept the New Deal,
> saying either
>     Wrong type argument: symbolp
> or
>     Attempt to set a constant symbol: nil
> The customize-set-variable interface is
>     (customize-set-variable VARIABLE VALUE &optional COMMENT)
> which sounds a lot like the setq interface, namely
>     (setq [SYM VAL]...)
> so why doesn't that work?

Hint, it's called `customize-set-variable', not `customize-setq-variable'. ;-)

You need to quote the symbol, if you want to pass a literal symbol.

(setq alpha 42) = (set 'alpha 42)

reply via email to

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