From: spamfilteraccount@gmail.com
Subject: Monitoring variable changes
Date: 6 Oct 2006 21:08:29 -0700 [thread overview]
Message-ID: <1160194109.535613.109730@e3g2000cwe.googlegroups.com> (raw)
I have a user option for my package which is a list of strings. I use
this list very frequently in my code and since speed is an issue I want
to do some preprocessing on it.
The problem is the user can change the option anytime (even via setq)
and I need to ensure the preprocessed value always reflects the actual
contents of the user option.
Is there a better way to do this than saving the previous value of the
user option and comparing it to the current value every time before I
try to use the preprocessed value?
Some hook maybe which can be set to be called when a variable is
changed regardless of how it is set?
next reply other threads:[~2006-10-07 4:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-07 4:08 spamfilteraccount [this message]
2006-10-10 6:09 ` Monitoring variable changes spamfilteraccount
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1160194109.535613.109730@e3g2000cwe.googlegroups.com \
--to=spamfilteraccount@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).