emacs-devel
[Top][All Lists]
Advanced

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

Re: Search Elisp buffers with pcase patterns


From: Michael Heerdegen
Subject: Re: Search Elisp buffers with pcase patterns
Date: Wed, 19 Aug 2015 20:33:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Ted Zlatanov <address@hidden> writes:

> I would love a lot more examples.

You mean examples of usage?  That should be doable.  Any suggestions?

> I'd love it to be generalized for other languages. I don't know if you
> think that makes sense, but I can imagine doing similar search or
> search+replace work against XML, HTML, JSON, or other structured data
> formats.

The package cries for that generalization, but I don't know how to do it
in a reasonable and efficient way.

For Elisp, I can just call `read' to get a suitable syntax tree.  For
other languages, I would also need something like an abstract syntax
tree.

Prior versions of semantic could generate ASTs, but they dismissed it
because it was too slow.  AFAIK I can maximally get something like a
flat tag list from semantic.  That's not enough to expand the thing to
other languages in a reasonable way.

But if someone has an enlightening idea...


Regards,

Michael.




reply via email to

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