From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9342 invoked by alias); 17 Jun 2016 09:27:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38700 Received: (qmail 8029 invoked from network); 17 Jun 2016 09:27:39 -0000 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 Subject: Re: PATCH: RPN mode for zcalc Date: Fri, 17 Jun 2016 11:26:42 +0200 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) Peter Stephenson writes: > On Thu, 16 Jun 2016 17:40:48 +0200 > Christian Neukirchen wrote: >> Peter Stephenson 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 now, why shouldn't I be able to type 6 7 8 * + >> And perhaps an operation to exchange the top two elements. > > I'll probably add some things of this sort. Thanks, -- Christian Neukirchen http://chneukirchen.org