[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
- [vile] Detecting if vile is idle, Chris Green, 2016/03/04
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/07
- Re: [vile] Detecting if vile is idle, Brendan O'Dea, 2016/03/08
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/08
- Re: [vile] Detecting if vile is idle, Brendan O'Dea, 2016/03/08
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/09
- Re: [vile] Detecting if vile is idle, Brendan O'Dea, 2016/03/09
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/10
- Re: [vile] Detecting if vile is idle,
Chris Green <=
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/11
- Re: [vile] Detecting if vile is idle, Chris Green, 2016/03/11