From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: auto-refresh TAGS file on ChangeLog mod?
Date: Mon, 25 Aug 2008 09:45:36 -0500 [thread overview]
Message-ID: <86d4jxqhkf.fsf@lifelogs.com> (raw)
In-Reply-To: m3pro1ginh.fsf@fleche.redhat.com
On Fri, 22 Aug 2008 09:43:14 -0600 Tom Tromey <tromey@redhat.com> wrote:
Tom> I've wanted to roll the retags idea into etags itself. It could read
Tom> a ".retags" file, daemonize, and use inotify to watch for changes in a
Tom> directory tree. I never found the time to do it though.
Ted> I'd like the solution to be implemented in Emacs, not externally.
Tom> Why is that?
I like to avoid external dependencies.
Tom> My first attempt was done that way. But, given that etags is already
Tom> external to emacs, I reasoned that it doesn't buy much to go this
Tom> route.
I understand and see your side as well. I was hoping to avoid another
external tool. I'm not against it, just exploring the options.
Ted> Emacs doesn't have inotify facilities AFAIK
Tom> Nope. FWIW, retags actually uses the inotify-tools package. This is
Tom> just a couple of little inotify wrappers that are handy for shell
Tom> scripts; Emacs can use them just as easily. But, as you say, adding
Tom> inotify support to Emacs would also not be difficult.
I don't know if asynchronous notices will be possible (I have to look at
the libraries), or if it should be implemented as a process filter to
inotify-tools. The latter seems a much easier target. I'm leaving this
despite (see below) thinking it's not necessary for retagging, because
inotify support for Emacs is probably going to be useful for other
packages.
Ted> New files of interest can probably be inferred by building a list of
Ted> extensions in TAGS; if you have .c files already then you'll want new.c
Ted> as well. I think anything more than this should require manual
Ted> reindexing or some user configuration of "I want to tag all *.c files."
Tom> Right, this is where the .retags file comes in. It tells retags what
Tom> to do. The particular use case that I needed here was "don't index
Tom> anything in testsuite/". I definitely do not want new .c files in
Tom> testsuite showing up...
Thanks for clarifying. That's something I did not consider. It's
probably easier to just have a Makefile that will track those
dependencies automatically. Actually, what I think may be appropriate
is just a way to say "make tags" before running `find-tag'. All the
extra intelligence is just duplicating what the user already has in the
Makefile, and what Make provides. WDYT?
Ted
next prev parent reply other threads:[~2008-08-25 14:45 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 [this message]
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
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=86d4jxqhkf.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=emacs-devel@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.