From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: hzoli@cs.elte.hu (Zoltan Hidvegi)
Cc: pws@ifh.de, zsh-workers@math.gatech.edu
Subject: Re: New zed and refresh bug
Date: Mon, 29 Jul 1996 16:21:06 +0200 (MET DST) [thread overview]
Message-ID: <199607291421.QAA03520@bolyai.cs.elte.hu> (raw)
In-Reply-To: <199607291403.QAA03358@bolyai.cs.elte.hu> from Zoltan Hidvegi at "Jul 29, 96 04:03:37 pm"
> > hzoli@cs.elte.hu wrote:
> > > The zed distributed with pre4 does not exit properli on ^C interrupt.
> ~~~ oops.
> > > ...
> > > integer tmout=TMOUT
> > > ...
> > > TMOUT=tmout
> >
> > I think some $ are wanted here.
>
> The first is OK, and the second used to work because TMOUT was a special
> integer parameter and $ is not necessary when assigning an integer
> parameter. But you are right that now TMOUT=$tmout or ((TMOUT=tmout))
> should be used. I'll fix it.
I's even simpler. Since TMOUT is not special now, the patch below works.
Note that integer makes TMOUT local.
Zoltan
*** Functions/zed 1996/07/28 22:31:53 2.3
--- Functions/zed 1996/07/29 14:17:47
***************
*** 8,14 ****
# compctl -f -x 'w[1,-f]' -F -- zed
local var fun ctrl_W_bind="$(bindkey '^W')"
! integer tmout=TMOUT
[[ $1 = -f || $0 = fned ]] && fun=1
[[ $1 = -(|-|f) ]] && shift
--- 8,15 ----
# compctl -f -x 'w[1,-f]' -F -- zed
local var fun ctrl_W_bind="$(bindkey '^W')"
! # We do not want timeout while we are editing a file
! integer TMOUT=0
[[ $1 = -f || $0 = fned ]] && fun=1
[[ $1 = -(|-|f) ]] && shift
***************
*** 21,33 ****
bindkey "^X^W" undefined-key
bindkey "^W" "$ctrl_W_bind"
trap - INT
- TMOUT=tmout
}
trap 'cleanup ; return 130' INT
-
- # We do not want timeout while we are editing a file
- TMOUT=0
# don't mangle !'s
setopt localoptions nobanghist
--- 22,30 ----
next prev parent reply other threads:[~1996-07-29 14:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-28 20:36 Zoltan Hidvegi
1996-07-29 13:34 ` Peter Stephenson
1996-07-29 14:03 ` Zoltan Hidvegi
1996-07-29 14:21 ` Zoltan Hidvegi [this message]
1996-08-03 16:00 ` Bart Schaefer
1996-08-04 0:42 ` Zoltan Hidvegi
1996-08-04 1:41 ` Local variables and "typeset" Bart Schaefer
1996-07-29 15:11 ` New zed and refresh bug Geoff Wing
1996-07-29 17:21 ` Zoltan Hidvegi
1996-07-30 4:52 ` Geoff Wing
1996-07-30 6:20 ` zle_refresh.c patch (Was: New zed and refresh bug) Geoff Wing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199607291421.QAA03520@bolyai.cs.elte.hu \
--to=hzoli@cs.elte.hu \
--cc=pws@ifh.de \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).