From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs Subject: bug#42588: 27.0.50; Emacs shell differs from a terminal in unexpected ways Date: Tue, 28 Jul 2020 22:44:09 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32912"; mail-complaints-to="usenet@ciao.gmane.io" To: 42588@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 28 22:36:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1k0WKX-0008IE-Nk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jul 2020 22:36:09 +0200 Original-Received: from localhost ([::1]:49822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0WKW-0005ly-Jr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jul 2020 16:36:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0WKQ-0005lq-G3 for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 16:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0WKQ-0006DM-6n for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 16:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k0WKQ-0002Zq-4K for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 16:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Markus Triska Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Jul 2020 20:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42588 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15959685359865 (code B ref -1); Tue, 28 Jul 2020 20:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jul 2020 20:35:35 +0000 Original-Received: from localhost ([127.0.0.1]:59177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0WJz-0002Z2-Hf for submit@debbugs.gnu.org; Tue, 28 Jul 2020 16:35:35 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0WJx-0002Yu-Jx for submit@debbugs.gnu.org; Tue, 28 Jul 2020 16:35:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0WJx-0005g3-Bs for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 16:35:33 -0400 Original-Received: from [78.47.144.35] (port=46502 helo=metalevel.at) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0WJv-00066P-9e for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 16:35:32 -0400 Original-Received: from mts-Mac-mini.localdomain (localhost [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id B49129E759 for ; Tue, 28 Jul 2020 22:35:27 +0200 (CEST) Original-Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id BA5C5F091EC; Tue, 28 Jul 2020 22:44:09 +0200 (CEST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 78.47.144.35 (failed) Received-SPF: none client-ip=78.47.144.35; envelope-from=triska@metalevel.at; helo=metalevel.at X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/28 16:35:28 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183631 Archived-At: To reproduce this issue, please install Scryer Prolog in one of the ways indicated in its source repository: https://github.com/mthom/scryer-prolog/ For example, use: $ cargo install scryer-prolog Then, start Emacs with: $ emacs -Q and start a shell with M-x shell RET. In the shell, invoke Scryer Prolog and paste the following in the buffer: writeq('\ '). % "\\\n" Scryer Prolog will answer with: caught: error(syntax_error(invalid_single_quoted_character),read_term/3) ?- caught: error(syntax_error(invalid_single_quoted_character),read_term/3) ?- However, when I launch Scryer Prolog in any terminal application and paste the exact same text, I get as response: '' true. So, the entire interaction reads, and is supposed to be: ?- writeq('\ '). % "\\\n" '' true. I expect the same result when posting this in the Emacs shell. However, in the Emacs shell, the entire interaction is unexpectedly: bash-3.2$ ~/scryer-prolog/target/release/scryer-prolog ?- writeq('\ '). % "\\\n" caught: error(syntax_error(invalid_single_quoted_character),read_term/3) ?- caught: error(syntax_error(invalid_single_quoted_character),read_term/3) ?- Could you please have a look, and if possible implement the behaviour of the system terminal also in the Emacs shell? Thank you a lot! Markus In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin18.0.0, X toolkit, Xaw scroll bars) of 2018-11-15 built on mt-mac Repository revision: b4eb908f858284a7962851fd99c94598f76afa6f Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Mac OS X 10.14.2