[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: theme and a question about creating them
From: |
Johan Bockgård |
Subject: |
Re: theme and a question about creating them |
Date: |
Wed, 05 Jan 2011 23:30:29 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>>> (defconst mycolor "#123456")
>>> (deftheme mytheme)
>>> (custom-theme-set-faces 'mytheme
>>> `(default ((t (:background ,mycolor)))))
>
>> Currently, the theme loading code is too strict about the forms in the
>> theme file that it will evaluate. It uses `unsafep' to check the forms,
>> and (defconst mycolor "#123456") is considered unsafe under the criteria
>> used by `unsafep'.
>
>> I am not sure what's the best way of handling this.
>
> How 'bout:
>
> (deftheme mytheme)
> (let ((mycolor "#123456"))
> (custom-theme-set-faces 'mytheme
> `(default ((t (:background ,mycolor))))))
unsafep does not allow \`
Re: theme and a question about creating them, Chong Yidong, 2011/01/05
Re: theme and a question about creating them, Chong Yidong, 2011/01/08