all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "David House" <dmhouse@gmail.com>
To: "Tom Tromey" <tromey@redhat.com>
Cc: emacs-devel@gnu.org
Subject: Re: auto-refresh TAGS file on ChangeLog mod?
Date: Fri, 22 Aug 2008 16:50:01 +0100	[thread overview]
Message-ID: <ebe43d680808220850n4e7c22daocf53ed230c9d4d55@mail.gmail.com> (raw)
In-Reply-To: <m3wsi9gj7z.fsf@fleche.redhat.com>

Sorry Tom, meant this to go to the list in the first place, hope you
don't mind my quoting your answer.

2008/8/22 Tom Tromey <tromey@redhat.com>:
> David> Even on moderately large projects running etags can take a few
> David> seconds. An obvious optimisation would be to add support to etags to
> David> replace one part of the TAGS file, i.e., regnerate the tags for just a
> David> single file and splice them in to TAGS. This would make it feasible to
> David> run retags on every file save, for example.
>
> I was hoping for something with a bit less tweaking.  The nice thing
> about retags is I can make a config file once, then basically forget
> about it.

I don't see why my method would lead to more customisation. At the
moment, etags cannot replace the entries in TAGS for a given file. I
suggest adding this, so that we can call etags --replace index.php,
which will extract tags from index.php, and then replace index.php's
entry in TAGS with the tags found.

> Also, hooking into file save doesn't handle some cases, like "svn update".

Sorry, by "file save" I really meant "file update", using inotify or
similar. Or maybe just an idle-timer-hook that checked the filemtimes.


-- 
-David




  parent reply	other threads:[~2008-08-22 15:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-18 14:28 auto-refresh TAGS file on ChangeLog mod? Ted Zlatanov
2008-08-21 13:55 ` Ted Zlatanov
2008-08-21 16:31   ` Tom Tromey
2008-08-22 15:30     ` Ted Zlatanov
2008-08-22 15:43       ` Tom Tromey
2008-08-25 14:45         ` Ted Zlatanov
2008-08-25 14:53           ` Lennart Borgman (gmail)
2008-08-25 15:28             ` inotify support (was: auto-refresh TAGS file on ChangeLog mod?) Ted Zlatanov
2008-08-25 15:28           ` auto-refresh TAGS file on ChangeLog mod? David House
2008-08-25 15:44           ` Tom Tromey
     [not found]     ` <ebe43d680808220242g5691f760iff28e8aaeb08408e@mail.gmail.com>
     [not found]       ` <m3wsi9gj7z.fsf@fleche.redhat.com>
2008-08-22 15:50         ` David House [this message]
2008-08-22 16:11           ` Tom Tromey
2008-08-22 16:26             ` David House

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=ebe43d680808220850n4e7c22daocf53ed230c9d4d55@mail.gmail.com \
    --to=dmhouse@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=tromey@redhat.com \
    /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.