[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] re-reading a tags file

From: Thomas Dickey
Subject: Re: [vile] re-reading a tags file
Date: Sat, 17 Aug 2013 11:11:06 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

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>
> >
> >
> 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

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]