From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jakub Jankiewicz Newsgroups: gmane.emacs.devel Subject: Re: Scheme Interpreter in Emacs and Readline Date: Sat, 18 Apr 2020 14:29:18 +0200 Message-ID: <20200418142918.7f5032b4@jcubic> References: <20200418125113.014121d2@jcubic> <87imhx6ocz.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="53157"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 18 14:40:23 2020 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 1jPmlj-000DkL-B5 for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Apr 2020 14:40:23 +0200 Original-Received: from localhost ([::1]:57554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPmli-0007zM-Da for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Apr 2020 08:40:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43013) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPmkp-0006zi-Bc for emacs-devel@gnu.org; Sat, 18 Apr 2020 08:39:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPmkj-0001xF-SX for emacs-devel@gnu.org; Sat, 18 Apr 2020 08:39:27 -0400 Original-Received: from smtpo28.poczta.onet.pl ([213.180.142.159]:41300) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jPmkh-0001s9-SF for emacs-devel@gnu.org; Sat, 18 Apr 2020 08:39:20 -0400 Original-Received: from jcubic (unknown [185.129.113.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jcubic@onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 494C276j31z1YXKJf; Sat, 18 Apr 2020 14:29:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onet.pl; s=2011; t=1587212960; bh=owA+EL3rZ3FbzmN+YHYK3dmTevtJEKuBClVlbk6UGfs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FH4tgJG7fEL7HVgLKont/3UcpmlgbfiSGO6tIzfTi/jxtmt6leuJHZEHNnoqYTjRB aFeOc6smQ5P42+XYA3/cnNEgvJ1mY4HRQ3+yU4ujxY4SgnTYi5yGg7tLAOkcOc5Ue3 7cQQ4p7mutl2AAWJH+qS2woL37PMo6IX/gyRfDe4= In-Reply-To: <87imhx6ocz.fsf@yahoo.com> X-Mailer: Claws Mail 3.17.3git196 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-ONET_PL-MDA-SEGREGATION: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 213.180.142.159 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:247225 Archived-At: > What do you mean by "when I resize the window or frame it keep adding > prompt to the prompt line"? I have prompt "lips> " and when I resize Emacs window on Fedora GNU/Linux (the only system I was testing this). on each resize I get new prompt so when I keep resizing I have something like this: lips> lips> lips> lips> lips> and they are all prompt because I can't delete it. Unless something wierd is happening. > It would also probbaly be helpful if you could post the source of your > Scheme interpreter. Sorry about that, my Scheme Interpreter is here: https://github.com/jcubic/lips/tree/devel Please use devel branch since it's most up to date, I still try to make it compatible with R5RS, before I release new version, it will 1.0. The executable is in bin directry (there are not much code, but it would be easier to have link that you can run insead of send this to the mailing list. https://github.com/jcubic/lips/blob/devel/bin/lips.js Just run: git clone https://github.com/jcubic/lips.git cd lips git checkout devel and run in GUI Emacs: (run-scheme "/lips/bin/lips.js") and resize the Frame or buffer's window if you have multiple windows. And I need to add that I was looking at Node.js source code, there is lot of code but it also use Readline and Node.js works in run-js (I'm not sure if it use something else for --interactive option that was suggested when I've search how to run node in Emacs). I've tested my interpeter with same run-js and I have same issue with duplicated prompt. -- Jakub Jankiewicz, Web Developer https://jcubic.pl/me