From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: dikbekulo@airmail.cc Newsgroups: gmane.lisp.guile.bugs Subject: bug#30600: repl metacommands do not discard remaining input after syntax error in an expression Date: Sun, 25 Feb 2018 00:31:19 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1519519757 5040 195.159.176.226 (25 Feb 2018 00:49:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Feb 2018 00:49:17 +0000 (UTC) User-Agent: Roundcube Webmail/1.3.3 To: 30600@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Feb 25 01:49:13 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epkV7-0000m6-5C for guile-bugs@m.gmane.org; Sun, 25 Feb 2018 01:49:13 +0100 Original-Received: from localhost ([::1]:52373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epkX8-0004Sg-0X for guile-bugs@m.gmane.org; Sat, 24 Feb 2018 19:51:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epkWz-0004SY-Mz for bug-guile@gnu.org; Sat, 24 Feb 2018 19:51:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epkWu-0001PB-RI for bug-guile@gnu.org; Sat, 24 Feb 2018 19:51:09 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epkWu-0001OT-9b for bug-guile@gnu.org; Sat, 24 Feb 2018 19:51:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1epkWr-00058J-Tk for bug-guile@gnu.org; Sat, 24 Feb 2018 19:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: dikbekulo@airmail.cc Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 25 Feb 2018 00:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30600 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151951982819686 (code B ref -1); Sun, 25 Feb 2018 00:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Feb 2018 00:50:28 +0000 Original-Received: from localhost ([127.0.0.1]:59303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epkWJ-00057R-Cl for submit@debbugs.gnu.org; Sat, 24 Feb 2018 19:50:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epjHz-0003EY-Iq for submit@debbugs.gnu.org; Sat, 24 Feb 2018 18:31:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epjHt-0006Aq-MH for submit@debbugs.gnu.org; Sat, 24 Feb 2018 18:31:30 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46527) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1epjHt-0006Ah-J6 for submit@debbugs.gnu.org; Sat, 24 Feb 2018 18:31:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epjHs-0005nk-Fs for bug-guile@gnu.org; Sat, 24 Feb 2018 18:31:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epjHn-00060b-JJ for bug-guile@gnu.org; Sat, 24 Feb 2018 18:31:28 -0500 Original-Received: from cock.li ([185.100.85.212]:36458) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1epjHn-0005wB-7C for bug-guile@gnu.org; Sat, 24 Feb 2018 18:31:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1519515080; bh=iPf7spF2Er5FXmIeah8nwihr3t8e8NxXJ3iIvzX0C3E=; h=Date:From:To:Subject:From; b=sJU6dOmYFyhFQ47/q1Sn6xzY7tHHcu/gyUsQfckSyOW28YYoIT4NyEnGJz30zuUNt pP8GZGsN36uBGjWnpGKrj5PY4EA5kfQa3stt8gBAU1qrpRTDbIbgyshS4pieOD69kq LLtOyR3zH0wacrjL8IdAIzzN8Q981uKEOVzfZXeqYa5cvXZbr4yTZujMdOPyaoPeBj vsXQSb/KwLEdUDMfvRAYJKzj5NOLHATnqBmJDYm0pG1MZpeyDYyKvkjLR5ffsJXVPI m9sTr2okCRqER1cI0VRZEVLXrtt6TFcD2UpEoHhaD8pLxsQeTDY5hFEzpPE7l9CBpo HRBq1xjj+ZL3Q== X-Sender: dikbekulo@airmail.cc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sat, 24 Feb 2018 19:50:26 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9015 Archived-At: Hello! When using meta-commands in the repl (without readline support), if reading an expression parameter fails, the rest of the input gets read in anyway. An example interaction: --8<---------------cut here---------------start------------->8--- GNU Guile 2.2.3 Copyright (C) 1995-2017 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,trace "\m" Throw to key `read-error' while reading argument `form' of command `trace': In procedure scm_lreadr: #:1:11: illegal character in escape sequence: #\m " $1 = "\n" scheme@(guile-user)> ,trace "\m123 Throw to key `read-error' while reading argument `form' of command `trace': In procedure scm_lreadr: #:2:11: illegal character in escape sequence: #\m $2 = 123 --8<---------------cut here---------------end--------------->8--- Since Geiser uses meta-commands with multi-line expressions to communicate with Guile it can get very confusing if you have syntax errors in your code.