emacs-devel
[Top][All Lists]
Advanced

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

Re: Is there a "selective setq locator/highlighter" anywhere?


From: Lennart Borgman
Subject: Re: Is there a "selective setq locator/highlighter" anywhere?
Date: Thu, 22 Jan 2009 14:44:11 +0100

On Thu, Jan 22, 2009 at 2:54 PM, Alan Mackenzie <address@hidden> wrote:
> Hi, Emacs!
>
> 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))

Can't you catch this with a regexp? (And I never understood what the
multi setq is good for.)

> , but not this:
>
>    (setq old-cache c-state-cache)
>
> .  Does anybody know of anything like this in existance?
>
> Thanks!
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>
>
>




reply via email to

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