Emacs中使用etags [4]
Navigating using tags
Once you have a tags file, you can follow tags (of functions, variables, macros, whatever) to their definitions. These are the basic commands:
- `
M-.
’ (‘find-tag’
) – find a tag, that is, use the Tags file to look up a definition. If there are multiple tags in the project with the same name, use `C-u M-.
’ to go to the next match. - `
M-*
’ (‘pop-tag-mark’
) – jump back ‘M-x tags-search’
– regexp-search through the source files indexed by a tags file (a bit like‘grep’
)‘M-x tags-query-replace’
– query-replace through the source files indexed by a tags file- `
M-,
’ (‘tags-loop-continue’
) – resume‘tags-search’
or‘tags-query-replace’
starting at point in a source file ‘M-x tags-apropos’
– list all tags in a tags file that match a regexp‘M-x list-tags’
– list all tags defined in a source file
posted on 2012-04-20 16:17 Richard.FreeBSD 阅读(136) 评论(0) 编辑 收藏 举报