all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: TAGS for multiply project.
Date: Sun, 25 Jul 2010 11:04:43 +0300	[thread overview]
Message-ID: <i2gr6s$5pg$1@dough.gmane.org> (raw)
In-Reply-To: <i2fqfe$vdc$1@dough.gmane.org>

On 2010-07-25 1:46, Richard Riley wrote:
> Oleksandr Gavenko<gavenkoa@gmail.com>  writes:
>
>> On 2010-07-24 11:48, Štěpán Němec wrote:
>>> Andrea Crotti<andrea.crotti.0@gmail.com>   writes:
>>>
>>>>> How can a go back after "C-c , J"  (semantic-complete-jump)
>>>>> like "M-*" (pop-tag-mark) for TAGS?
>>>>>
>>>>
>>>> Good question, I never asked myself since C-x b RET gets me back to the
>>>> original file, but it would be nice to have something like that.
>>>> More nice would be open the buffer in a different window because
>>>> normally that's what I want...
>>>
>>> I never used Semantic, but one would expect that `pop-global-mark' (C-x
>>> C-SPC by default) will do what you want.
>>>
>> Interesting command, but it seems not working as 'pop-tag-mark'.
>>
>> For example I visit .el file mark position, visit .cxx
>> file, go to definition of local function by "C-c , j"
>> and try go back by "C-x C-SPC". Sadly switched to .el buffer.
>
>
> The tags file used is set based on project hierarchy if I understand you
> properly.
>
> http://www.emacswiki.org/emacs/EtagsTable
>
Many thanks to Richard Riley.

With

   (require 'etags-table)
   (setq etags-table-search-up-depth 1)

Emacs automatically search for TAGS file starting
from current directory and go up until found.

This allow use TAGS for multiply project
by building TAGS file on the root of each project.

And performance is good (need no more than second time wait
when go to definition).

'semantic' I also will be use for 'global-semantic-idle-summary-mode'
but I don't want replace TAGS with it
as I know how TAGS works and with etags/ctags I can
easy parse new file type based on regexp
(no need for elisp programming).

'etags-table.el' have only 100 line of elist.
Why do not include it into official Emacs?

Automatic TAGS search up depth very useful feature.

-- 
Best regards!




  reply	other threads:[~2010-07-25  8:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-22 21:32 TAGS for multiply project Oleksandr Gavenko
2010-07-22 22:28 ` Andrea Crotti
2010-07-23 19:36   ` Oleksandr Gavenko
2010-07-23 20:11     ` Andrea Crotti
2010-07-24  8:48       ` Štěpán Němec
2010-07-24 21:05         ` Oleksandr Gavenko
2010-07-24 22:46           ` Richard Riley
2010-07-25  8:04             ` Oleksandr Gavenko [this message]
2010-07-25  8:23               ` Thierry Volpiatto
2010-07-25 16:39                 ` Richard Riley
2010-07-25 16:19       ` Oleksandr Gavenko
2010-07-25 18:53         ` Oleksandr Gavenko
2010-07-25 19:49           ` Štěpán Němec
     [not found] <mailman.5.1279834337.32138.help-gnu-emacs@gnu.org>
2010-07-23 13:28 ` Scott Frazer

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='i2gr6s$5pg$1@dough.gmane.org' \
    --to=gavenkoa@gmail.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.