From unknown Sat Jun 14 03:56:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26057: 25.1; 'M-x eshell-source-file' fails Resent-From: Chunyang Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Mar 2017 09:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26057 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 26057@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.148922626717824 (code B ref -1); Sat, 11 Mar 2017 09:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2017 09:57:47 +0000 Received: from localhost ([127.0.0.1]:50278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmdmV-0004dQ-8t for submit@debbugs.gnu.org; Sat, 11 Mar 2017 04:57:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmdmT-0004dE-Ea for submit@debbugs.gnu.org; Sat, 11 Mar 2017 04:57:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmdmN-0004S5-Dt for submit@debbugs.gnu.org; Sat, 11 Mar 2017 04:57:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40310) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmdmN-0004S0-Am for submit@debbugs.gnu.org; Sat, 11 Mar 2017 04:57:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmdmM-0005V6-1x for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:57:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmdmJ-0004Pn-1F for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:57:38 -0500 Received: from smtpproxy19.qq.com ([184.105.206.84]:33045) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmdmI-0004O4-Oe for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:57:34 -0500 X-QQ-mid: bizesmtp16t1489226245tn1yskjq Received: from Chunyangs-MacBook-Air.local (unknown [114.236.194.125]) by esmtp4.qq.com (ESMTP) with SMTP id 0 for ; Sat, 11 Mar 2017 17:57:24 +0800 (CST) X-QQ-SSF: 0010000000200060F410B00A0000000 X-QQ-FEAT: QgH80CGa/yGQFaYd7rZIVzwVRBdGXh3G0zyIhAS4oh72NTntwodnq+QxbncWX I4vkaj51LGPD3SvFR1J6i3jeEgJERnbud6vpbsF2uU7+iEvVWDAUXIZDsfTDmOKaqefwk0x cPoU7bC43isFSRVved0B2llpiIF5JULK6CVAYQe6cUxHnA7iiTztCMi3YFd4VpZ6q7hRdwg tMyRjLTToYcE4/sYZqeR8vANFY+YEYaJa2Vbk+KVHPPQSdl+kHbYkHwFiTzoU4KQ= X-QQ-GoodBg: 0 From: Chunyang Xu Date: Sat, 11 Mar 2017 17:57:24 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 X-QQ-Bgrelay: 1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) After I open Eshell, the eshell-source-file is available as an interactive command and in (info "(eshell) Scripts") it says Scripts are invoked from Eshell with =E2=80=98source=E2=80=99, or from an= ywhere in Emacs with =E2=80=98eshell-source-file=E2=80=99. so it looks like to me I can run M-x eshell-source-file RET /tmp/foo.esh RET the content of the file (which should not matter) ~ $ cat /tmp/foo.esh pwd ~ $ it fails by showing the following in the echo area eshell-source-file: No catch for tag: eshell-replace-command, (let ((eshe= ll-command-name (quote "/tmp/foo.esh")) (eshell-command-arguments (quote ni= l))) (eshell-trap-errors (eshell-named-command "pwd"))) the backtrace is Debugger entered--Lisp error: (no-catch eshell-replace-command (let ((eshel= l-command-name (quote "/tmp/foo.esh")) (eshell-command-arguments (quote nil= ))) (eshell-trap-errors (eshell-named-command "pwd")))) throw(eshell-replace-command (let ((eshell-command-name (quote "/tmp/foo.= esh")) (eshell-command-arguments (quote nil))) (eshell-trap-errors (eshell-= named-command "pwd")))) eshell-source-file("/tmp/foo.esh") funcall-interactively(eshell-source-file "/tmp/foo.esh") call-interactively(eshell-source-file record nil) command-execute(eshell-source-file record) execute-extended-command(nil "eshell-source-file" nil) funcall-interactively(execute-extended-command nil "eshell-source-file" n= il) call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) I don't really sure about the purpose of making eshell-source-file interactive, maybe it is a bug? From unknown Sat Jun 14 03:56:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#26057: 25.1; 'M-x eshell-source-file' fails Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2019 12:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26057 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Chunyang Xu Cc: 26057@debbugs.gnu.org Received: via spool by 26057-submit@debbugs.gnu.org id=B26057.156414333229489 (code B ref 26057); Fri, 26 Jul 2019 12:16:01 +0000 Received: (at 26057) by debbugs.gnu.org; 26 Jul 2019 12:15:32 +0000 Received: from localhost ([127.0.0.1]:41054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqz8F-0007f9-VE for submit@debbugs.gnu.org; Fri, 26 Jul 2019 08:15:32 -0400 Received: from quimby.gnus.org ([80.91.231.51]:60886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqz8D-0007bD-EL for 26057@debbugs.gnu.org; Fri, 26 Jul 2019 08:15:31 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqz88-0006Dz-VQ; Fri, 26 Jul 2019 14:15:27 +0200 From: Lars Ingebrigtsen References: Date: Fri, 26 Jul 2019 14:15:24 +0200 In-Reply-To: (Chunyang Xu's message of "Sat, 11 Mar 2017 17:57:24 +0800") Message-ID: <87blxhm1pf.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Chunyang Xu writes: > After I open Eshell, the eshell-source-file is available as an > interactive command and in (info "(eshell) Scripts") it says > > Scripts are invoked from Eshell with =?UTF-8?Q?=E2=80=98source=E2=80=99,?= or from anywhere [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) 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: -1.0 (-) Chunyang Xu writes: > After I open Eshell, the eshell-source-file is available as an > interactive command and in (info "(eshell) Scripts") it says > > Scripts are invoked from Eshell with =E2=80=98source=E2=80=99, or from = anywhere in Emacs > with =E2=80=98eshell-source-file=E2=80=99. > > so it looks like to me I can run > > M-x eshell-source-file RET /tmp/foo.esh RET [...] > it fails by showing the following in the echo area > > eshell-source-file: No catch for tag: eshell-replace-command, (let [...] > I don't really sure about the purpose of making eshell-source-file > interactive, maybe it is a bug? It looks like the interactive spec has always been there (at least since 2000), but that function can't possibly work as an interactive command. So, as you say, I think it's a bug, and I've now removed the interactive spec from the function on the Emacs trunk. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 26 08:15:36 2019 Received: (at control) by debbugs.gnu.org; 26 Jul 2019 12:15:36 +0000 Received: from localhost ([127.0.0.1]:41057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqz8K-0007js-AI for submit@debbugs.gnu.org; Fri, 26 Jul 2019 08:15:36 -0400 Received: from quimby.gnus.org ([80.91.231.51]:60900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqz8I-0007hg-KD for control@debbugs.gnu.org; Fri, 26 Jul 2019 08:15:34 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hqz8G-0006E6-1w for control@debbugs.gnu.org; Fri, 26 Jul 2019 14:15:34 +0200 Date: Fri, 26 Jul 2019 14:15:31 +0200 Message-Id: <87a7d1m1p8.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #26057 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: tags 26057 fixed close 26057 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) tags 26057 fixed close 26057 27.1 quit