From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Completion TODO (was: pws-11)
Date: Tue, 9 Mar 1999 09:02:08 +0100 (MET) [thread overview]
Message-ID: <199903090802.JAA12276@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Mon, 08 Mar 1999 18:54:05 +0100
Peter Stephenson wrote:
> Sven Wischnowsky wrote:
> > The current state: condition codes, some of them modifying. Saving and
> > restoring of the special parameters is done automatically on function
> > entry and exit (and nowhere else).
> > The problems are: modifying condition codes are considered a bad thing
> > and saving/restoring has to be done explicitly.
>
> I haven't followed what's wrong with having the parameters restored
> automatically unless compstate[restore] is altered.
I was alluding to the restoring inside a function when one has
multiple tests.
> If the modification of the parameters is simply to be removed from [[-style
> tests, then I still think a builtin is the best way of handling it.
> `compset -i 3' ignores three more characters from $PREFIX, or
> whatever. This could allow tests with side effects, like `compset -I
> <pattern>' to ignore a pattern at the head of $PREFIX if it matches,
> or whatever. Then you also could have e.g. `compset -n 2 -1', narrow
> to words 2 to -1 (same as shifting words and decrementing CURRENT),
> `compset -N "start_pat" "optional_end_pat"', narrow to the range of
> words between the patterns with the end pattern optional. If it's
> much more complicated than that, I can't imagine I would use it much.
I had forgotten to include this in the list of suggestions (although,
I think, it was the first suggestion ever made).
The builtin should have a return value usable for `if compset ...; then'
as a `side effect', right?
> I'm not really enthusiastic about more subscripting hieroglyphics.
;-)
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-03-09 8:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-09 8:02 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-03-08 12:52 Sven Wischnowsky
1999-03-08 17:54 ` Peter Stephenson
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=199903090802.JAA12276@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.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).