[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)
- RE: Using "Emacs Configure" **and** modifying .emacs, (continued)
- RE: Using "Emacs Configure" **and** modifying .emacs, Drew Adams, 2017/08/11
- (1) defcustom :set, (2) similar for defvar, Drew Adams, 2017/08/11
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/11
- Re: Using "Emacs Configure" **and** modifying .emacs, tomas, 2017/08/12
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/12
- Re: Using "Emacs Configure" **and** modifying .emacs, tomas, 2017/08/12
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/12
- Re: Using "Emacs Configure" **and** modifying .emacs, Tomas Nordin, 2017/08/12
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/12
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/15
- RE: Using "Emacs Configure" **and** modifying .emacs,
Drew Adams <=
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/15
- RE: Using "Emacs Configure" **and** modifying .emacs, Drew Adams, 2017/08/15
- Re: Using "Emacs Configure" **and** modifying .emacs, John Mastro, 2017/08/15
- Re: Using "Emacs Configure" **and** modifying .emacs, Robert Thorpe, 2017/08/15
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/15
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/15
- Re: Using "Emacs Configure" **and** modifying .emacs, John Mastro, 2017/08/15
- RE: Using "Emacs Configure" **and** modifying .emacs, Drew Adams, 2017/08/15
- Re: Using "Emacs Configure" **and** modifying .emacs, John Mastro, 2017/08/15
- Re: Using "Emacs Configure" **and** modifying .emacs, Emanuel Berg, 2017/08/15