From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.bugs Subject: bug#30600: repl metacommands do not discard remaining input after syntax error in an expression Date: Tue, 18 May 2021 18:19:30 +0200 Message-ID: <0362f51c-6659-55f8-c3c0-02d4a63773b7@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------F602583569526E8F609D7E0C" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6872"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 To: 30600@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Tue May 18 18:20:20 2021 Return-path: Envelope-to: guile-bugs@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 1lj2SC-0001bK-91 for guile-bugs@m.gmane-mx.org; Tue, 18 May 2021 18:20:20 +0200 Original-Received: from localhost ([::1]:38636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj2SB-0008Pm-AR for guile-bugs@m.gmane-mx.org; Tue, 18 May 2021 12:20:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj2Rv-00086v-1F for bug-guile@gnu.org; Tue, 18 May 2021 12:20:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lj2Ru-0000Zx-OW for bug-guile@gnu.org; Tue, 18 May 2021 12:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lj2Ru-0002KS-H5 for bug-guile@gnu.org; Tue, 18 May 2021 12:20:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Taylan Kammer Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 18 May 2021 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30600 X-GNU-PR-Package: guile Original-Received: via spool by 30600-submit@debbugs.gnu.org id=B30600.16213547828907 (code B ref 30600); Tue, 18 May 2021 16:20:02 +0000 Original-Received: (at 30600) by debbugs.gnu.org; 18 May 2021 16:19:42 +0000 Original-Received: from localhost ([127.0.0.1]:57075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj2RZ-0002Ja-Um for submit@debbugs.gnu.org; Tue, 18 May 2021 12:19:42 -0400 Original-Received: from mail-ej1-f51.google.com ([209.85.218.51]:35472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj2RY-0002JM-74 for 30600@debbugs.gnu.org; Tue, 18 May 2021 12:19:40 -0400 Original-Received: by mail-ej1-f51.google.com with SMTP id k14so12007595eji.2 for <30600@debbugs.gnu.org>; Tue, 18 May 2021 09:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=aFMS6q+f67JNGgzX71dwfPKWpBGon3ckxJvFWJ3E+XM=; b=O39NMTdryzsq/JW2Zg60Usi+Rj1Tq1bTvxrsil3tzGFH4bMlnAFYONjllOJjQ9YM/P vBgeQ+nN0iTg3L4HFaoBeZueS8RLrODbO3FoXSibE/RmkX5bX2eUrACRf0Tg5F+bxNcN ddLocQQTbMFIixh7gxetng3FfagPbcSWbHDZhtz8O4mUtTCGpSfKgPDFSd0I1qHNlWk9 dtUZJ/gjOostSJzmz4V4541httJ63bFYmMzC8LoYPBFoOo5rGENHeisNcu6YgDXnWNAW kgDgi/nZz+Ycd7U1V5ULJeBGxOwcUNLirJ1UMLWJzSTnSDih3kImsoFBy+hFKREuPgop z0Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=aFMS6q+f67JNGgzX71dwfPKWpBGon3ckxJvFWJ3E+XM=; b=IL4PygKWWNQb7odHsdhtayi4FR0F5Id/puq5PyaqBz8PdApJWCxz1zbpnZmK2jSN/R jX8PMiXdtFb8K3hiT9Mkzb0GQKiVSm+BEHafToo9+8+mXyyL04djyYO+o6pUfLsQDfVw UcOY1Om2MHdwLolsmYCa2DNyXmLXx3BK1Z6xlLsbxrPjf29Hd4uf6s9NPyMbTsC5lI69 DqGp18W9ctx4jS+sqa7vHfyr+0MNBKZcKR298BeiH8MgrLrB+hCZKaykFEisml3fiQGb mMErMvn5/VSvrrnH9wiMST/Q0D4l0Iv9pz1JHaN72nwgSuUlwXT5JgZFV7+cCf3UtVIJ fqng== X-Gm-Message-State: AOAM530tGUpa8zAATVcppMRPrp7bvEYh3BcmH4gWxpWpHdlUZVTdlZIK qKQf6HQAcdewPNzxpu+d3xSx97kcHzy19w== X-Google-Smtp-Source: ABdhPJw6SVBvZOgjiU7WazIG2anfuVqcOm8oofp2PxY6UUO75TkISUh6hXoqv995hH/1dGimKquSpw== X-Received: by 2002:a17:906:a3c9:: with SMTP id ca9mr6868967ejb.553.1621354774355; Tue, 18 May 2021 09:19:34 -0700 (PDT) Original-Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id f7sm13598192edd.5.2021.05.18.09.19.33 for <30600@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 May 2021 09:19:33 -0700 (PDT) Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10089 Archived-At: This is a multi-part message in MIME format. --------------F602583569526E8F609D7E0C Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Attached is a small patch to fix this. -- Taylan --------------F602583569526E8F609D7E0C Content-Type: text/plain; charset=UTF-8; name="0001-Better-REPL-behavior-on-syntax-errors-in-meta-comman.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename*0="0001-Better-REPL-behavior-on-syntax-errors-in-meta-comman.pa"; filename*1="tch" RnJvbSAwYmE2Nzg5MTYyNDY0NzEwNWUwZGJkYzMzYjAwNzljYmE2NTVjZWMxIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBUYXlsYW4gS2FtbWVyIDx0YXlsYW4ua2FtbWVyQGdt YWlsLmNvbT4KRGF0ZTogVHVlLCAxOCBNYXkgMjAyMSAxODoxNTowOCArMDIwMApTdWJqZWN0 OiBbUEFUQ0hdIEJldHRlciBSRVBMIGJlaGF2aW9yIG9uIHN5bnRheCBlcnJvcnMgaW4gbWV0 YSBjb21tYW5kcy4KCiogbW9kdWxlL3N5c3RlbS9yZXBsL2NvbW1hbmQuc2NtIChkZWZpbmUt bWV0YS1jb21tYW5kKTogRmx1c2ggYWxsCnJlbWFpbmluZyBpbnB1dCBhZnRlciBoYW5kbGlu ZyBhIHJlYWQgZXJyb3IuCiogbW9kdWxlL3N5c3RlbS9yZXBsL2NvbW1vbi5zY20gKGZsdXNo LWFsbC1pbnB1dCk6IE5ldyBwdWJs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602583569526E8F609D7E0C--