[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a "selective setq locator/highlighter" anywhere?
From: |
Stefan Monnier |
Subject: |
Re: Is there a "selective setq locator/highlighter" anywhere? |
Date: |
Thu, 22 Jan 2009 09:49:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> I sometimes have problems with long rambling elisp defuns, in that some
> critical variable, say `c-state-cache' is updated in several (or even
> many) places in the defun, and it's difficult to see the places it gets
> changed.
> Hi-lock-mode is helpful here, in that I can highlight occurances of
> "c-state-cache" and occurances of "setq". But the longer and ramblinger
> a defun becomes, the less helpful is this.
> I would like a tool which would highlight these:
> (setq foo bar
> c-state-cache (cdr c-state-cache))
> (setcar c-state-cache (caar c-state-cache))
> , but not this:
> (setq old-cache c-state-cache)
> . Does anybody know of anything like this in existance?
I don't. But you could start by changing all your (setq var1 val1 var2
val2 ...) forms so as to only use (setq var val). That should make it
a lot easier.
Stefan