From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Is there a "selective setq locator/highlighter" anywhere? Date: Thu, 22 Jan 2009 14:44:11 +0100 Message-ID: References: <20090122135425.GA3719@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1232631890 14937 80.91.229.12 (22 Jan 2009 13:44:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Jan 2009 13:44:50 +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 14:46:02 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 1LPzsX-0004Ij-3a for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2009 14:45:53 +0100 Original-Received: from localhost ([127.0.0.1]:40856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPzrF-0005RN-Cz for ged-emacs-devel@m.gmane.org; Thu, 22 Jan 2009 08:44:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPzqy-0005A8-K2 for emacs-devel@gnu.org; Thu, 22 Jan 2009 08:44:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPzqx-000589-I8 for emacs-devel@gnu.org; Thu, 22 Jan 2009 08:44:15 -0500 Original-Received: from [199.232.76.173] (port=49291 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPzqx-00057f-A5 for emacs-devel@gnu.org; Thu, 22 Jan 2009 08:44:15 -0500 Original-Received: from mail-ew0-f20.google.com ([209.85.219.20]:55735) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPzqw-0004aW-48 for emacs-devel@gnu.org; Thu, 22 Jan 2009 08:44:14 -0500 Original-Received: by ewy13 with SMTP id 13so2758743ewy.18 for ; Thu, 22 Jan 2009 05:44:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dF+PHcrb84nK8liiQLeLEIX9H5M/CNWVFTfeNEQVTXk=; b=bwAXmJMC9/UeGj0dlnAg8s8w54uUQXHXVp4aVV6fgUf09b7i9P8QDMplL1k2iUDksz 7RcvOSVJJne3teSV+aDCXb5Y5BjxJQlVHPOb3He/TGj4C5CB+GhIC+UJdriv9hIwsiww UQhGJJZmMK0xqr+Po4VeeebPZm1ITQCe7Qdxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XHk6c6rVxFLsKZdCGZDq/YAG2C0cOQrV0QaiLLbEiiKVshFQWVCIGFFaDLJ+gUqIaq DWcFH5kpXiLIVdrsrlPL+YCWIXDqGpUreWG0o54Wd7qY+R5VkjnsEe34WO7gXLsRn6dF W+Xd+mNq2abN5GbikQMjsb1NtoSshPD7j+9qI= Original-Received: by 10.86.54.3 with SMTP id c3mr1040654fga.31.1232631851977; Thu, 22 Jan 2009 05:44:11 -0800 (PST) In-Reply-To: <20090122135425.GA3719@muc.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:108084 Archived-At: On Thu, Jan 22, 2009 at 2:54 PM, Alan Mackenzie 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). > > >