zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: PATCH: $CONTEXT
Date: Tue, 16 Dec 2003 10:30:34 +0000	[thread overview]
Message-ID: <4077.1071570634@csr.com> (raw)
In-Reply-To: "Oliver Kiddle"'s message of "Tue, 16 Dec 2003 10:56:53 +0100." <10731.1071568613@gmcs3.local>

Oliver Kiddle wrote:
> Peter wrote:
> > Here is the zle parameter CONTEXT.  There are four contexts start, cont,
> > select, vared.  Let me know if you think there should be more.
> 
> Would `primary' and `secondary' perhaps be better values for `start'
> and `cont'?  That would tie up more closely with the documentation for
> PS1 and PS2.

Maybe, but it's a bit ugly, and a bit less obvious what it's for.

> As for other values, reading from the minibuffer probably ought to be
> relevant but I suspect it isn't.  Replacing accept-line caused me
> problems from it.  Menu selection and scrolling came to mind but they
> take place from a primary or secondary prompt. If we're going to have a
> number of different minor things, a zlestate associative array like
> compstate might be better.

Yes, these are slightly different and not actually orthogonal to the
primary context.

> Would it perhaps be worth making a convention of sticking this $CONTEXT
> in a second component of the zstyle context (after :zle:) when looking
> up styles from zle widgets?

On reflection, this makes some sense... you might different word
behaviour in a vared than at the command line, for example.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


  reply	other threads:[~2003-12-16 10:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-15 22:43 Peter Stephenson
2003-12-16  9:56 ` Oliver Kiddle
2003-12-16 10:30   ` Peter Stephenson [this message]
2003-12-17 20:09 Felix Rosencrantz

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=4077.1071570634@csr.com \
    --to=pws@csr.com \
    --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).