emacs-devel
[Top][All Lists]
Advanced

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

Re: custom-set-variables considered harmful


From: Stefan Monnier
Subject: Re: custom-set-variables considered harmful
Date: Tue, 07 Nov 2017 14:53:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Here i a useful defmacro that helps with setting things that are
> customized via custom without having to think about it:

> (defmacro c-setq (variable value)
>   "Exactly like setq, but handles custom."
>   `(funcall (or (get ',variable 'custom-set) 'set-default) ',variable ,value))

I think you should use customize-set-variable instead
(or make your macro use it).


        Stefan




reply via email to

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