From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jakub T. Jankiewicz" Newsgroups: gmane.emacs.devel Subject: Emacs Scheme Mode, REPL, and scheme-send-definition Date: Fri, 2 Feb 2024 18:39:55 +0100 Message-ID: <20240202183955.4bfd4f64@jcubic> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37695"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 02 19:35:14 2024 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 1rVyNd-0009Um-KZ for ged-emacs-devel@m.gmane-mx.org; Fri, 02 Feb 2024 19:35:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVyN3-0007NG-Ix; Fri, 02 Feb 2024 13:34:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVxcJ-0006ol-8w for emacs-devel@gnu.org; Fri, 02 Feb 2024 12:46:19 -0500 Original-Received: from u1.atthost.pl ([185.255.40.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVxbx-0005st-1r for emacs-devel@gnu.org; Fri, 02 Feb 2024 12:46:00 -0500 Original-Received: from localhost (unknown [127.0.0.1]) by u1.atthost.pl (Postfix) with ESMTP id 0DB74125A19 for ; Fri, 2 Feb 2024 17:39:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at atthost.pl Original-Received: from u1.atthost.pl ([185.255.40.21]) by localhost (atthost.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7I-KrlqeoAme for ; Fri, 2 Feb 2024 18:39:56 +0100 (CET) Original-Received: from jcubic (unknown [178.218.193.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jcubic@jcubic.pl) by u1.atthost.pl (Postfix) with ESMTPSA id 9AFE51235CC for ; Fri, 2 Feb 2024 18:39:56 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 u1.atthost.pl 9AFE51235CC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jcubic.pl; s=atthost; t=1706895596; bh=gzerfgR9nypf39dbPe3DV1LwuzdDKXwhoW0KsEuurCU=; h=Date:From:To:Subject:From; b=BZpq4y11+8x4XAXpGzxhDxwD5vtJC5Pxp5243Yg47kbb8BChy7TBYHoN6yN9En5Xh y57Zl3d8WijXRNd4opsQmEhJLS+ZGUr0c0fVxLC1eiQ83CYccOJb0gl8UVPFTz/1Oy Bx/rmQCc7OBJH2qqZjjeUJcB6OzIONgvfD33F/Ps= X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; x86_64-redhat-linux-gnu) Received-SPF: pass client-ip=185.255.40.21; envelope-from=SRS0=wVr/=JL=jcubic.pl=jcubic@attmail.pl; helo=u1.atthost.pl X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 02 Feb 2024 13:34:34 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315771 Archived-At: Hi, Is there a way to implement something in Scheme REPL that will disable continuations prompts when running C-C C-e? I have Scheme REPL for my own implementation, but the same thing happen with guile: scheme@(guile-user)> ( ... define x 10) scheme@(guile-user)> ... ... ... ... scheme@(guile-user)> scheme@(guile-user)> I've typed open parenthesis and press enter, and the next thing was calling scheme-send-definition to the REPL. Is there a way to detect Emacs copy-paste and don't show the continue prompt? Maybe show simple message "loaded"? If not in REPL then maybe in Inferior Scheme. I use this to run the REPL: (defun scheme () "call run-scheme with guile scheme interpreter." (interactive) (run-scheme "/usr/bin/guile")) Thanks, Jakub -- Jakub T. Jankiewicz, Senior Front-End Developer https://jcubic.pl/me https://lips.js.org https://koduj.org