[Top][All Lists]

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

Re: [PATCH] Run hook when variable is set

From: Kelly Dean
Subject: Re: [PATCH] Run hook when variable is set
Date: Fri, 30 Jan 2015 07:14:19 +0000

>> For just one example, without varhook, what solution would you
>> propose for bug #19068?
> The canonical way of solving those is to have a :set function in the
> defcustom (and tell in the doc string that setting the value directly
> doesn't work).
> IOW, for defcustoms we already have this solved.

Oh, I missed the :set function for defcustom.

I'm probably just being dense, but the customization interface in Emacs is a 
bit confusing for me, so I've always just put «setq»s in my init file. 
Requiring use of the customization interface for users who are accustomed to 
directly editing init seems a bit Windows-esque, but at least if the docstring 
says it's required, then it won't be misleading.

reply via email to

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