我正在寻找一些帮助来开发我认为应该是一个简单的程序.
我想要类似于Emacs tags-search命令的东西,但我想将所有搜索结果收集到缓冲区中.(我希望看到M-的所有结果,)
我认为这个python样式伪代码应该可以工作,但我不知道如何在emacs lisp中执行此操作?任何帮助将不胜感激.
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
Run Code Online (Sandbox Code Playgroud)
我希望能够浏览具有相同功能标签的缓冲区 - apropos.
请注意,之前已经提出过类似的问题: 有没有办法让emacs tag-search命令将所有结果输出到缓冲区?