vile
[Top][All Lists]
Advanced

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

Re: [vile] Clearing errors?


From: Thomas Dickey
Subject: Re: [vile] Clearing errors?
Date: Fri, 11 Mar 2016 19:27:57 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Mar 11, 2016 at 02:17:59PM -0800, Marc Simpson wrote:
> > Here's a clearer example without &error,
> >
> > store-procedure oops
> >   fubar
> > ~endm
> 
> [reordered snip]
> 
> >> The issue with the above is that once `oops' is triggered, I'm unable
> >> to write my buffers to disk,
> >>
> >>   [write-hook returned FALSE]
> >>
> >> which is, um, somewhat problematic....
> 
> Still not sure how to correctly address this failing hook, but running
> another macro that returns cleanly resolves the issue for now. My
> current workaround is to run
> 
>   store-procedure reset-return
>   ~endm
> 
> which clears $_ (i.e., sets to TRUE). If there's a way to properly

offhand, I don't think I considered this problem.  But I can reproduce
it, and will take a look (it's simpler than what I was working on just
now...)

$_ corresponds to the internal variable lastcmdstatus, which is set
after executing any command.

> abort, please let me know (abort-command / hitting ESC doesn't do the
> trick).
> 
> Sorry for the noisy question earlier---one of those days.
> 
> _______________________________________________
> 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

Attachment: signature.asc
Description: Digital signature


reply via email to

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