From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Derek Peschel <dpeschel@eskimo.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH: 4.0.2: rprompt2 variable
Date: Thu, 31 Jan 2002 14:12:12 +0000 [thread overview]
Message-ID: <3C5950BC.94D3207C@yahoo.co.uk> (raw)
In-Reply-To: <20020130210103.A28938@eskimo.eskimo.com>
Derek Peschel wrote:
> and reason that if the line is going to get too long, it should just
> stop growing. So leaving the feature out on principle seems a bit
> presumptuous to me (especially since it was easy to add and didn't use
> very much code).
I'm happy with that argument. And thinking about it, I agree that there
might be uses - RPS2='<%6(_,%2^ ... %-2^,%^)' might be used to avoid
the state list getting too long.
> Would it be possible to do the reversal using the precmd feature? (Can
> you "print" the prompt to a string?) If so, then the %^ escape can go.
> And that makes more sense as the code to take out, since none of the
> other escapes has a "reverse order" feature.
It seems that precmd is only run before each PS1 prompt so the answer
to the question is no. Of course, we could change that or add a precmd2
but I'm not sure there would be much point. My vote is for sticking
with %^ because it is likely to be commonly used in RPS2.
Peter wrote:
> You might as well commit it. I don't think anyone's going to mind.
Okay, I will.
Derek wrote:
> The behavior affects the released 4.0.2, as well as today's daily 4.1
> snapshot. I haven't tested 4.0.4 (it seems not to compile on my system)
> but undoubtedly it works the same way.
What is the compiler error or whatever with 4.0.4? What type of system
is it?
Oliver
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
next prev parent reply other threads:[~2002-01-31 14:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-25 12:48 Derek Peschel
2002-01-29 18:21 ` Oliver Kiddle
2002-01-31 5:01 ` Derek Peschel
2002-01-31 14:12 ` Oliver Kiddle [this message]
2002-01-31 12:06 ` 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=3C5950BC.94D3207C@yahoo.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=dpeschel@eskimo.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).