help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Cycle through tag symbols


From: David Kastrup
Subject: Re: Cycle through tag symbols
Date: Wed, 23 Aug 2006 08:48:10 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Thomas" <totohero@empal.com> writes:

> In VIM, you can cycle through all tag symbols which contains 'hello'
> substring by typing :tag *hello* and press tabs.
>
> Is there any other similar mode in emacs? (whether it works with cscope
> or etags or anything)

M-. runs the command find-tag
   which is an interactive compiled Lisp function in `etags.el'.
It is bound to M-., <menu-bar> <edit> <goto> <find-tag>.
(find-tag TAGNAME &optional NEXT-P REGEXP-P)

Find tag (in current tags table) whose name contains TAGNAME.
Select the buffer containing the tag's definition, and move point there.
The default for TAGNAME is the expression in the buffer around or before point.

If second arg NEXT-P is t (interactively, with prefix arg), search for
another tag that matches the last tagname or regexp used.  When there are
multiple matches for a tag, more exact matches are found first.  If NEXT-P
is the atom `-' (interactively, with prefix arg that is a negative number
or just M--), pop back to the previous tag gone to.

If third arg REGEXP-P is non-nil, treat TAGNAME as a regexp.

A marker representing the point when this command is invoked is pushed
onto a ring and may be popped back to with M-*.
Contrast this with the ring of marks gone to by the command.

See documentation of variable `tags-file-name'.

[back]


M-, runs the command tags-loop-continue
   which is an interactive compiled Lisp function in `etags.el'.
It is bound to M-,, <menu-bar> <edit> <search> <tags-continue>, <menu-bar> 
<edit> <replace> <tags-repl-continue>.
(tags-loop-continue &optional FIRST-TIME)

Continue last M-x tags-search or M-x tags-query-replace command.
Used noninteractively with non-nil argument to begin such a command (the
argument is passed to `next-file', which see).

Two variables control the processing we do on each file: the value of
`tags-loop-scan' is a form to be executed on each file to see if it is
interesting (it returns non-nil if so) and `tags-loop-operate' is a form to
evaluate to operate on an interesting file.  If the latter evaluates to
nil, we exit; otherwise we scan the next file.

[back]



-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

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