all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Scott Frazer <scfrazer@cisco.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to use etags-select
Date: Fri, 27 Jul 2007 14:35:40 -0400	[thread overview]
Message-ID: <1185561317.788809@sj-nntpcache-2.cisco.com> (raw)
In-Reply-To: <1185550332.397562.17110@b79g2000hse.googlegroups.com>

Rafal Kurcz wrote:
> Now the numbering of tags is very, very useful. Below are my
> conclusions about using etags-select:
> 1. It is very nice that it takes advantage of searchable mini buffer -
> especially in case of the long list of tags.

Yes

> 2. How to force etags-select to be case-sensitive.
>   I've setup (setq tags-case-fold-search nil) and it works for M-. but
> unfortunately it does not work in etags-select.
>   It is very important when browsing C/C++ code.

Fixed, see EmacsWiki.

> 3. It would be very nice to show more information in the list of tags.
>   For example VIM uses the following format to show the list of tags
> generated by "exuberent-ctags -R":
> 
>  # pri kind tag               file
>   1 FSC m    speed             class.cpp
>                struct:Plane
>                int speed;
>   2 FSC f    speed             class.cpp
>                class:Car
>                void speed () {return;}
>   3 F C f    speed             class.cpp
>                struct:Bike
>                int speed () {return 10;}
>   4 F C f    speed             class.cpp
>                char speed (char c) {return c;}
> Choice number (<Enter> cancels):
> 

[snip]

> I can see that it works partially for TAGS generated by etags from
> emacs but does not work for TAGS generated by "exuberent-ctags -e -R".
> I guess that for the sake of convinience it is better to have each tag
> description in a single line.

I can't really do much about this, I can only work with what etags and
exuberant-ctags generates.  etags adds namespace information for c++ code,
which I show as part of the tag name.  exuberant-ctags just puts in the
unqualified tag.  You can add the 'extra' option:

ctags --extra=q -e -R

which will include the namespace info, but it keeps the original tag also;
i.e. you get double entries for most tags, both pointing to the same line
of code.  If it really bugs you, it would be pretty easy to post-process
the TAGS file and remove the duplicates (left as an exercise for the
student).

Scott

  reply	other threads:[~2007-07-27 18:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-21  9:57 How to use etags-select Rafal Kurcz
2007-07-23 13:23 ` Scott Frazer
2007-07-24  8:17   ` Rafal Kurcz
2007-07-24 16:55     ` Scott Frazer
2007-07-27 15:32       ` Rafal Kurcz
2007-07-27 18:35         ` Scott Frazer [this message]
2007-09-01 12:05           ` Rafal Kurcz
2007-09-04 13:31             ` Scott Frazer
2007-09-04 15:56               ` Scott Frazer
2007-09-04 16:16                 ` Richard G Riley
2007-09-05  8:27                 ` Rafal Kurcz
2007-09-08 16:41                   ` Rafal Kurcz
2007-09-09 12:01                     ` Rafal Kurcz
2007-09-10 14:33                     ` Scott Frazer
2007-09-15 10:03                       ` Rafal Kurcz
2007-09-18 13:08                         ` Scott Frazer
2007-09-19 15:22                           ` Rafal Kurcz
2007-09-25 15:41                             ` Scott Frazer
2007-09-25 16:04                               ` Gordon Beaton
2007-09-25 18:04                                 ` Scott Frazer
2007-09-25 23:36                                   ` Scott Frazer
2007-09-04 19:34               ` Vagn Johansen
2007-09-04 19:55                 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1185561317.788809@sj-nntpcache-2.cisco.com \
    --to=scfrazer@cisco.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.