emacs-devel
[Top][All Lists]
Advanced

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

Re: Customize Rogue


From: Kim F. Storm
Subject: Re: Customize Rogue
Date: 10 Mar 2003 16:18:45 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Per Abrahamsen <address@hidden> writes:

> Luc Teirlinck <address@hidden> writes:
> 
> > Would that be a lot more difficult than say:
> >
> > (defun set-activate (variable value)
> >   "Sets variable to value.  If there is a set-function, calls it."
> >   (custom-load-symbol variable)
> >   (funcall (or (get variable 'custom-set) 'set-default) variable value)) 
> >  
> > To be used like:
> >
> > (set-activate 'tool-bar-mode t)
> 
> I think that would be an excellent addition to custom.el.
> 

And I think it was exactly what was asked for -- except for the name.

I like custom-set (or custom-setq) better, as is emphasizes that
this does indeed work just as if the variable was set interactively
through customize (as the doc string of some variables say is
required).

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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