[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] re-reading a tags file
From: |
Wayne Cuddy |
Subject: |
Re: [vile] re-reading a tags file |
Date: |
Sat, 17 Aug 2013 13:39:29 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Sat, Aug 17, 2013 at 11:11:06AM -0400, Thomas Dickey wrote:
> On Fri, Aug 16, 2013 at 02:04:27PM -0400, Wayne Cuddy wrote:
> > On Fri, Aug 16, 2013 at 04:22:34AM -0400, Thomas Dickey wrote:
> > > On Thu, Aug 15, 2013 at 11:02:16PM -0400, Wayne Cuddy wrote:
> > > > Is there a way to have vile automatically re-read a tags file if it's
> > > > been updated, for instance if the time on the file has changed?
> > >
> > > see check-modtime
> > >
> > > --
> > > Thomas E. Dickey <address@hidden>
> > > http://invisible-island.net
> > > ftp://invisible-island.net
> >
> > In general I prefer to run with this setting turned off because I
> > frequently view log files that are being written so. So I enabled
> > check-modtime only for tagsmode files in my vilerc.
> >
> > The problem is that during development I may (re)generate the tags file
> > several times. It seems that in order for check-modtime to have effect
> > I need to switch to the tags buffer, then I'm prompted to reload it.
>
> hmm - reading the code (in gettagsfile, tags.c) I don't see a path
> where it will prompt you. In a quick check (editing "tags" from a
> separate process), vile appears to reload the tags-file without
> prompting when check-modtime is set.
>
> The tags files are handled as a special case - in part because they're
> scratch buffers (not "real" files). Comments in the code remind me that
> it is only checking for the global value of the mode. We could improve
> that by ensuring that these scratch buffers get "tagsmode" -- as I do to
> set "vilemode" in other cases -- and then checking the local value
> (which I recall is the effective value of the majormode).
>
> > I think I'm looking for a more convenient solution where each time I
> > attempt to jump to a tag the modtime on the tags file is checked and
> > it's silently reloaded in the background.
> >
> > Does such a feature exist?
> >
> > Thanks,
> > Wayne
> >
> > _______________________________________________
> > vile mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/vile
>
> --
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net
That would be a nice enhancement. Since I just realized I only care
about check-modtime being off when viewing logfiles (mostly) I enabled
it globally and disabled it in logmode. Tags are working as expected
now.
Thanks,
Wayne