From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chunyang Xu Newsgroups: gmane.emacs.bugs Subject: bug#26057: 25.1; 'M-x eshell-source-file' fails Date: Sat, 11 Mar 2017 17:57:24 +0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1489226297 10228 195.159.176.226 (11 Mar 2017 09:58:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Mar 2017 09:58:17 +0000 (UTC) To: 26057@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 11 10:58:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cmdmq-0001R3-9j for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Mar 2017 10:58:08 +0100 Original-Received: from localhost ([::1]:42627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmdmw-0005Wu-61 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Mar 2017 04:58:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmdmn-0005Wd-6t for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:58:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmdmk-0004bn-51 for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:58:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52079) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmdmk-0004bd-1V for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cmdmj-0004du-OA for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 04:58:01 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148922626717824 (code B ref -1); Sat, 11 Mar 2017 09:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Mar 2017 09:57:47 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 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-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-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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130475 Archived-At: 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?