我希望find-tag
自动接受默认选项(即光标所在的单词)并跳转到标签位置,无需提示。
这可行吗?
我还使用了Emacswiki中建议的版本的find-tag,在匹配的情况下重新运行ctags。因此,我想要像这样的东西:
is current word a known tag?
-> yes: jump to it without further confirmation
-> no: rerun ctags
is it known now?
-> yes: jump to it without further confirmation
-> no: prompt user for input
谢谢!
M-.
时,它会抱怨没有TAGS文件。如果我在那个目录中创建一个TAGS文件,它就可以工作了,但对于每个唯一的标签,它会给出2个匹配项(可能是因为有2个TAGS文件?)。所以我要么得到0个匹配项,要么得到2个匹配项,但无法正常工作...有什么想法是什么原因吗? - user673592