vile
[Top][All Lists]
Advanced

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

Re: [vile] Detecting if vile is idle


From: Chris Green
Subject: Re: [vile] Detecting if vile is idle
Date: Fri, 11 Mar 2016 11:41:00 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Mar 10, 2016 at 10:03:52AM +1100, Brendan O'Dea wrote:
> On 9 March 2016 at 22:06, Chris Green <address@hidden> wrote:
> > On Wed, Mar 09, 2016 at 03:33:41PM +1100, Brendan O'Dea wrote:
> >> Sure, just make some trivial change and undo it:
> > Doesn't undo back to the start clear the modified flag?  It certainly
> > seems to when done manually, which I think is actually rather clever!
> 
> I does clear the modified flag, so "exit" in the script above won't
> complain about the contents needing to be saved.  There are however
> two relevant bits for each buffer: has the buffer been changed since
> last write (BFCHG) and has the buffer been recently changed (BFRCHG).
> The first is cleared by the "undo", the second is not.  BFRCHG is used
> to determine if the autocolor hook should run, and is only cleared
> once it has.
> 
> Either way, it works.  If I open a file, source the script I posted
> earlier, then wait patiently for fiveish minutes, vile exits.
> 
OK, but I still have one problem, I need to do the modify/unmodify
automatically which means running those commands after I've loaded the
file.  I guess I can use the -c command line option to do this though.

-- 
Chris Green



reply via email to

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