emacs-devel
[Top][All Lists]
Advanced

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

Re: Activating a function when a variable is set


From: Davis Herring
Subject: Re: Activating a function when a variable is set
Date: Thu, 25 Oct 2007 14:21:21 -0700 (PDT)
User-agent: SquirrelMail/1.4.8-6.el3.2lanl

> Does anybody know if there is a way to activate a function when a
> variable is set to t and also when the same variable is set to nil?

As in, react immediately to (setq trapped-variable t)?  No.  With custom
variables you can react to them being customized by giving them a :set
attribute.  But AFAIK there's no way to "detect" a change to a Lisp
variable.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.




reply via email to

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