From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christian Johansson Newsgroups: gmane.emacs.devel Subject: Re: I want to add a package to GNU ELPA: infix-notation-calculator Date: Tue, 17 Aug 2021 17:27:40 +0200 Message-ID: References: <87eeasm70r.fsf@ucl.ac.uk> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27974"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eric S Fraga Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 17 17:28:52 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mG11I-00071X-DU for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Aug 2021 17:28:52 +0200 Original-Received: from localhost ([::1]:34430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mG11H-0000kE-1D for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Aug 2021 11:28:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG10I-00088L-Fk for emacs-devel@gnu.org; Tue, 17 Aug 2021 11:27:50 -0400 Original-Received: from mailrelay1-3.pub.mailoutpod1-cph3.one.com ([46.30.212.10]:42249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mG10F-0005hZ-7M for emacs-devel@gnu.org; Tue, 17 Aug 2021 11:27:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cvj.se; s=20191106; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version:from: content-transfer-encoding:content-type:from; bh=l3lYvdssn9NmoG0jVSyV5pfjI3aLFHfjkQmR7poUDTI=; b=T5P1R8QnOaGq9kcNhOX5Oz8Tr9K8bPbFCOWDbMdclG6DOMD5ZD9anzZ5HtdS+bq7BlnQ/wtWsFeIG ub3Qvm/xHz04aNofV+/ZMzGcItcjmnsvz+Sg+xZ2KW7kurPu5Kny5LgZavXi5cjj+qPwjQpcOPHTDV buD7i4XLmEuKpN7EuP5vmiC2icPMc+0CiziMHr8f9Ops2YEVFaTLv9bQWN32K0lhiO1e1zrH8nUiDV jouWwIbmQXgZde5H9E7X07Bliq0oKKOO4HVci2urwWgN2OEtt3Z76F/bRSZeGHrdz1SX0uwdJFx6ge 5zmIm3LIPOw5IwT4+1/cwYy72BbE/Rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cvj.se; s=rsa1; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version:from: content-transfer-encoding:content-type:from; bh=l3lYvdssn9NmoG0jVSyV5pfjI3aLFHfjkQmR7poUDTI=; b=N9RrbxiGXx2g0ETS5PwYF2uDRmQ8NJO7QzQ+woLN04mktjoFgOYB11S+ZqFX/rNqs6kgW0w0ZQdJu SttbzCACTA0CV2cFKpmYF9FFwofi1hgGffKv0Cr0XvXC/mJX5YcItoyDc05uZbx5s1BMnARJA2Bszo eQScykj+h507AoBbjVJ2cTaMUAq+gYZK4tiyqEqNKVeEobYvbHLL0w0ZjFDvi1ME63QOFs3VQxiM+J BT+hdtjYFdKBIV8D3EO8i/RVWoPbF4zSKqIb1UZPwkXTnfS9EW/FFgYbHA9eYgKdEVAtRw9nTfTue0 cpCYFXnf7U+/FBhZGLFKtapw5Lwe9+A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=cvj.se; s=ed1; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version:from: content-transfer-encoding:content-type:from; bh=l3lYvdssn9NmoG0jVSyV5pfjI3aLFHfjkQmR7poUDTI=; b=89npdCo2TkKMoBgqZRqICWQC89bStciXSTriTZYBpjhtzIltu+ZHxk9ZdDNkXNMJx/LExNV2rWShp ESMj3dhCA== X-HalOne-Cookie: 3401e0d7960d1cfd9dd8c30ae3ec31d24321fdbd X-HalOne-ID: a94003ff-ff6f-11eb-b7cb-d0431ea8a283 Original-Received: from smtpclient.apple (unknown [2a00:801:73e:bc55:8c36:bdb5:1cb8:510c]) by mailrelay1.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id a94003ff-ff6f-11eb-b7cb-d0431ea8a283; Tue, 17 Aug 2021 15:27:42 +0000 (UTC) In-Reply-To: <87eeasm70r.fsf@ucl.ac.uk> X-Mailer: iPhone Mail (18G82) Received-SPF: none client-ip=46.30.212.10; envelope-from=christian@cvj.se; helo=mailrelay1-3.pub.mailoutpod1-cph3.one.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272496 Archived-At: No I tried with the example buffer contents, without * and I got those error= s. However I got it working in emacs-lisp-mode buffer but it deleted my calc= ulation and replaced it with the answer.. can that feature be turned off? > 17 aug. 2021 kl. 17:22 skrev Eric S Fraga : >=20 > =EF=BB=BFOn Tuesday, 17 Aug 2021 at 13:20, Christian Johansson wrote: >> and it doesn't seem to do the same, it's integrated into calc.el and >> uses the same stack as calc.el, when running C-x * e on any line in my >> example buffer I get "Parse Error", pressing C-x * w I get error "Too >> few elements on stack" >=20 > Make sure the line has only a valid (infix) equation and it will > work. Your example had *at the start of each time which means multiply > but there is no left hand side... >=20 > Embedded Calc allows you to customize how equations are found, in any > case, but the default is often just blank lines before and after. >=20 > --=20 > Eric S Fraga via Emacs 28.0.50 & org 9.4.6 on Debian 11.0 >=20 >=20