Help writing emacs lisp for emacs etags search

Posted by user535707 on Stack Overflow See other posts from Stack Overflow or by user535707
Published on 2010-12-17T20:40:09Z Indexed on 2011/01/06 20:53 UTC
Read the original article Hit count: 284

Filed under:
|
|

I'm looking for some help developing what I think should be an easy program.

I want something similar to Emacs tags-search command, but I want to collect all search results into a buffer. (I want to see all results of M-,)

I'm thinking this python style pseudo code should work, but I have no idea how to do this in emacs lisp? Any help would be greatly appreciated.

def myTagsGrep(searchValue):
    for aFile in the tag list:
        result = grep aFile seachValue
        if len(result) > 0:
            print aFile  # to the buffer
            print result # to the buffer

I would like to be able to browse through the buffer with the same features tags-apropos does.

Note that a similar question has been asked before: Is there a way to get emacs tag-search command to output all results to a buffer?

© Stack Overflow or respective owner

Related posts about emacs

Related posts about lisp