On Fri, Mar 12, 2010 at 02:56:20PM +0100, Michal Hlavinka wrote:
> On Thursday 11 March 2010 18:47:07 ольга крыжановская wrote:
> > Why is this patch not needed for emacs/gmacs mode?
>
> Well, seems I don't understand your question. Looking in the patch (I'm not
> an
> author of that patch, but it fixes the problem) - there is just one condition
> affected = "||mbwide()" added, it means that what needs to be done is
> already
> done when other part(s) of the condition is true and one of them are
> sh_isoption(SH_GEMACS) and sh_isoption(SH_EMACS), so for emacs/gemacs mode it
> already executes condition body
Maybe it would be also possible to use
sh_isoption(SH_VIRAW)
instead of mbwide()
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
--- a/src/cmd/ksh93/sh/fault.c
+++ b/src/cmd/ksh93/sh/fault.c 2010-03-12 14:06:17.000000000 +0000
@@ -614,7 +614,7 @@ void sh_done(void *ptr, register int sig
sh_accend();
#endif /* SHOPT_ACCT */
#if SHOPT_VSH || SHOPT_ESH
- if(sh_isoption(SH_EMACS)||sh_isoption(SH_VI)||sh_isoption(SH_GMACS))
+ if(sh_isoption(SH_EMACS)||sh_isoption(SH_VI)||sh_isoption(SH_GMACS)||sh_isoption(SH_VIRAW))
tty_cooked(-1);
#endif
#ifdef JOBS
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers