[Top][All Lists]

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

Re: custom: how do I augment an option?

From: Sam Steingold
Subject: Re: custom: how do I augment an option?
Date: Wed, 05 Sep 2012 15:18:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

> * Sam Steingold <> [2012-09-05 13:56:20 -0400]:
> (custom-set-variables
>  '(message-syntax-checks (adjoin '(long-lines . disabled)
>                                  message-syntax-checks
>                                  :key 'equal)))
> will evaluate `message-syntax-checks' too early:

The "solution" is
--8<---------------cut here---------------start------------->8---
   (adjoin '(long-lines . disabled)
    (eval (car (get 'message-syntax-checks 'standard-value)))
    :test 'equal)))
--8<---------------cut here---------------end--------------->8---
which uses `eval' on top of `adjoin'.

So, what is the official method?

Sam Steingold ( on Ubuntu 12.04 (precise) X 11.0.11103000
Save your burned out bulbs for me, I'm building my own dark room.

reply via email to

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