From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: exit after 10 EOF's
Date: Sun, 19 Sep 2004 18:52:09 +0100 [thread overview]
Message-ID: <20040919175211.3557D863A@pwstephenson.fsnet.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.61.0409190935150.6971@toltec.zanshin.com>
Bart Schaefer wrote:
> On Sun, 19 Sep 2004, Duncan Sinclair wrote:
>
> > But in the absence of any special binding I don't see what's wrong with
> > giving in and exiting after <some number> of the standard ignoreeof
> > warnings have been printed.
>
> You may have hit on the solution. Rather than counting the number of EOF
> key presses, count the number of warnings printed. Thus suppressing the
> warning is the same as suppressing the exit behavior (which is not true of
> the code as patched by 20363). I'd settle for that, I think.
Yes, that sounds OK. If we could somehow make it (without too much
tortuous code) that any zle -N widget, no matter what it contains,
suppresses the warning and the EOF behaviour, I would be fairly happy.
My main remaining unhappiness is with the structure of the code, which
is why the message and the exiting are separate as patched; the same
test occurs in two places (not counting the main loop in the main
shell). However, maybe that can be fixed, too.
pws
next prev parent reply other threads:[~2004-09-19 17:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-13 11:18 Peter Stephenson
2004-09-13 17:51 ` Bart Schaefer
2004-09-15 9:46 ` Peter Stephenson
2004-09-15 15:43 ` Bart Schaefer
2004-09-15 16:02 ` Bart Schaefer
2004-09-15 16:14 ` Peter Stephenson
2004-09-16 14:57 ` Peter Stephenson
2004-09-16 16:12 ` Bart Schaefer
2004-09-16 16:28 ` Peter Stephenson
2004-09-19 6:50 ` Bart Schaefer
2004-09-19 7:45 ` Duncan Sinclair
2004-09-19 16:41 ` Bart Schaefer
2004-09-19 17:52 ` Peter Stephenson [this message]
2004-09-19 18:26 ` Bart Schaefer
2004-09-19 19:25 ` Bart Schaefer
2004-09-20 10:15 ` Peter Stephenson
2004-09-20 13:59 ` Peter Stephenson
2004-09-20 14:43 ` Bart Schaefer
2004-09-20 14:53 ` Peter Stephenson
2004-09-19 19:11 ` Bart Schaefer
2004-09-19 11:53 ` Peter Stephenson
2004-09-19 17:00 ` Bart Schaefer
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=20040919175211.3557D863A@pwstephenson.fsnet.co.uk \
--to=pws@pwstephenson.fsnet.co.uk \
--cc=zsh-workers@sunsite.dk \
/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).