"Richard Y. Kim" <[EMAIL PROTECTED]> writes:

> >>>>> "PK" == Paul Kinnucan <[EMAIL PROTECTED]> writes:
> 
>     PK> At 01:55 PM 1/20/00 -0500, Paul Kinnucan wrote:
> 
>     >> I believe in my old job somebody bound the prefixed
>     >> find-tag command to M-, keystrokes. So you could do
>     >> 
>     >> M-. Hashtable
>     >> M-, 
>     >> M-,
>     >> 
>     >> to cycle through all the hits for Hashtable in the TAGS table.
> 
>     PK> I've done this for myself by inserting the following
>     PK> into my .emacs file:
> 
>     PK> (defun find-next-tag ()
>     PK>   (interactive)
>     PK>   (find-tag last-tag t))
> 
>     PK> (global-set-key "\M-," 'find-next-tag)
> 
> Both GNU Emacs and GNU XEmacs bind "M-," to function called
> tags-loop-continue.
> 
> They both document this in info node "(emacs)Tags Search", and "(xemacs)Tags
> Search".
> 
> You wouldn't be able to tell by reading the documentation, but GNU XEmacs
> lets you use "M-," after doing "M-." to go to the next match.  However GNU
> Emacs does not.
> 
> So your find-next-tag would not be needed for XEmacs, but may be useful for
> Emacs.
> 
> I thought GNU Emacs let you use "M-," to cycle through tags going back to
> version 18.  Could this be a bug in GNU Emacs version of etags.el?

In Gnu Emacs, if you provide a prefix arg to "M-." (find-tag), it will go to
the next match.

So you could use:

        M-. Hashtable
        C-u M-.
        C-u M-.

To cycle through all the matches, as outlined above. (I haven't tested
this in the context of jtags).

-- 
Jim Davidson
jdavidso @ csi.com

Reply via email to