From unknown Sun Jun 22 08:10:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42588: 27.0.50; Emacs shell differs from a terminal in unexpected ways 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-GNU-PR-Keywords: To: 42588@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15959685359865 (code B ref -1); Tue, 28 Jul 2020 20:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jul 2020 20:35:35 +0000 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 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 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 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 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) Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id BA5C5F091EC; Tue, 28 Jul 2020 22:44:09 +0200 (CEST) From: Markus Triska Date: Tue, 28 Jul 2020 22:44:09 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 From unknown Sun Jun 22 08:10:07 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Markus Triska Subject: bug#42588: closed (This issue is resolved by a change in Scryer Prolog) Message-ID: References: <878seykd8g.fsf@metalevel.at> X-Gnu-PR-Message: they-closed 42588 X-Gnu-PR-Package: emacs Reply-To: 42588@debbugs.gnu.org Date: Sat, 01 Aug 2020 08:01:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1596268862-22758-1" This is a multi-part message in MIME format... ------------=_1596268862-22758-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #42588: 27.0.50; Emacs shell differs from a terminal in unexpected ways which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 42588@debbugs.gnu.org. --=20 42588: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42588 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1596268862-22758-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 42588-done) by debbugs.gnu.org; 1 Aug 2020 08:00:03 +0000 Received: from localhost ([127.0.0.1]:39113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1mR1-0005sV-Bd for submit@debbugs.gnu.org; Sat, 01 Aug 2020 04:00:03 -0400 Received: from [78.47.144.35] (port=50014 helo=metalevel.at) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1mQz-0005rZ-4D for 42588-done@debbugs.gnu.org; Sat, 01 Aug 2020 04:00:01 -0400 Received: by metalevel.at (Postfix, from userid 1000) id 948859E770; Sat, 1 Aug 2020 09:59:59 +0200 (CEST) From: Markus Triska To: 42588-done@debbugs.gnu.org Subject: This issue is resolved by a change in Scryer Prolog Date: Sat, 01 Aug 2020 09:59:59 +0200 Message-ID: <878seykd8g.fsf@metalevel.at> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: A change was installed in Scryer Prolog that resolves this: https://github.com/mthom/scryer-prolog/issues/643 The system now works as expected in the Emacs shell. Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 42588-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) A change was installed in Scryer Prolog that resolves this: https://github.com/mthom/scryer-prolog/issues/643 The system now works as expected in the Emacs shell. Thank you a lot! Markus ------------=_1596268862-22758-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Jul 2020 20:35:35 +0000 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 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 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 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 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) Received: by mts-Mac-mini.localdomain (Postfix, from userid 501) id BA5C5F091EC; Tue, 28 Jul 2020 22:44:09 +0200 (CEST) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 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 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 ------------=_1596268862-22758-1--