From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Is there a "selective setq locator/highlighter" anywhere? Date: Thu, 22 Jan 2009 09:49:33 -0500 Message-ID: References: <20090122135425.GA3719@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232636769 32750 80.91.229.12 (22 Jan 2009 15:06:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 15:06:09 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Alan Mackenzie" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 22 16:07:21 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LQ18p-0001Wl-KT for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2009 16:06:47 +0100 Original-Received: from localhost ([127.0.0.1]:54644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ17X-0004qi-NX for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2009 10:05:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQ0sb-0001sN-B9 for emacs-devel@gnu.org; Thu, 22 Jan 2009 09:50:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQ0sZ-0001rN-Ka for emacs-devel@gnu.org; Thu, 22 Jan 2009 09:50:00 -0500 Original-Received: from [199.232.76.173] (port=52160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQ0sZ-0001rF-8D for emacs-devel@gnu.org; Thu, 22 Jan 2009 09:49:59 -0500 Original-Received: from mail.g-wis.com ([204.250.154.18]:4934) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LQ0sY-0004Rp-Hs for emacs-devel@gnu.org; Thu, 22 Jan 2009 09:49:58 -0500 thread-index: Acl8oKpdoI+9KtZOQC2eQxAaIrNfVQ== X-Received-From-Address: 69.38.23.210 X-Envelope-From: monnier@iro.umontreal.ca X-Envelope-To: emacs-devel@gnu.org, monnier@iro.umontreal.ca, acm@muc.de Original-Received: from ceviche.home ([69.38.23.210]) by mail.g-wis.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 22 Jan 2009 06:49:44 -0800 Original-Received: by ceviche.home (Postfix, from userid 20848) id 80D45B400C; Thu, 22 Jan 2009 09:49:33 -0500 (EST) Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 In-Reply-To: <20090122135425.GA3719@muc.de> (Alan Mackenzie's message of "Thu, 22 Jan 2009 13:54:25 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-OriginalArrivalTime: 22 Jan 2009 14:49:44.0383 (UTC) FILETIME=[A9E664F0:01C97CA0] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108094 Archived-At: > 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