unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Is there a "selective setq locator/highlighter" anywhere?
Date: Fri, 23 Jan 2009 15:41:51 +0000	[thread overview]
Message-ID: <20090123154150.GD3056@muc.de> (raw)
In-Reply-To: <e01d8a50901220544s2a836a63qe70609cf4c62e813@mail.gmail.com>

On Thu, Jan 22, 2009 at 02:44:11PM +0100, Lennart Borgman wrote:
> On Thu, Jan 22, 2009 at 2:54 PM, Alan Mackenzie <acm@muc.de> wrote:
> > Hi, Emacs!

[ .... ]

> > 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.)

A regexp will only work in practice, sort of, not in theory.  In
particular, regexps (which are mathematically equivalent to finite state
machines) can't parse arbitrarily nested structures (for which one needs
a push-down automaton or suchlike.

> > .  Does anybody know of anything like this in existance?

Anyhow, I've thrown together a requisite piece of software.  See another
post.

-- 
Alan Mackenzie (Nuremberg, Germany).




  parent reply	other threads:[~2009-01-23 15:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-22 13:54 Is there a "selective setq locator/highlighter" anywhere? Alan Mackenzie
2009-01-22 13:44 ` Lennart Borgman
2009-01-22 16:23   ` Stefan Monnier
2009-01-23 15:41   ` Alan Mackenzie [this message]
2009-01-23 15:36     ` Lennart Borgman
2009-01-23 16:12       ` Lennart Borgman
2009-01-22 14:49 ` Stefan Monnier
2009-01-22 18:06 ` Davis Herring
2009-01-23 15:58   ` Is there a "selective setq locator/highlighter" anywhere? There is now! Alan Mackenzie

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=20090123154150.GD3056@muc.de \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).