Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,
	FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no
	version=3.4.1
X-Injected-Via-Gmane: http://gmane.org/
To: zsh-workers@zsh.org
From: Christian Neukirchen <chneukirchen@gmail.com>
Subject: Re: PATCH: RPN mode for zcalc
Date: Fri, 17 Jun 2016 11:26:42 +0200
Lines: 30
Message-ID: <87inx8kvxp.fsf@gmail.com>
References: <20160616100006.4b0bd4b4@pwslap01u.europe.root.pri>
	<87mvmlkupr.fsf@gmail.com>
	<20160616170958.4942abc6@pwslap01u.europe.root.pri>
Mime-Version: 1.0
Content-Type: text/plain
X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: host57-2.natpool.mwn.de
In-Reply-To: <20160616170958.4942abc6@pwslap01u.europe.root.pri> (Peter
	Stephenson's message of "Thu, 16 Jun 2016 17:09:58 +0100")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
X-Seq: zsh-workers 38700

Peter Stephenson <p.stephenson@samsung.com> writes:

> On Thu, 16 Jun 2016 17:40:48 +0200
> Christian Neukirchen <chneukirchen@gmail.com> wrote:
>> Peter Stephenson <p.stephenson@samsung.com> writes:
>> 
>> > This adds an RPN mode for zcalc.  (Because it does, that's why.)  See
>> > the documentation.
>> 
>> It's a nice idea, but it would be even better if space worked as ENTER too,
>> so "5 4 +" returns 9.
>
> That's another function entirely, based on keystrokes rather than lines
> containing expressions; it doesn't fit into zcalc.
>
> Of course, if you want to write one, feel free.

I don't mean the space to update the display or anything, just
tokenize the input first?

I mean, I can type 6+7*8<RET> now, why shouldn't I be able to type
6 7 8 * + <RET>

>> And perhaps an operation to exchange the top two elements.
>
> I'll probably add some things of this sort.

Thanks,
-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org

