From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#36742: 25.2; shell-mode over TRAMP does not read remote history file as comint input ring Date: Mon, 22 Jul 2019 13:11:21 +0200 Message-ID: <87h87egw86.fsf@gmx.de> References: <788003112.20729758.1563633042446.JavaMail.zimbra@sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="215009"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36742@debbugs.gnu.org To: Fan Yang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 22 13:13:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpWFi-000tkz-BO for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2019 13:13:10 +0200 Original-Received: from localhost ([::1]:60528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpWFg-0002wz-QE for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 Jul 2019 07:13:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45141) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpWFc-0002v5-QY for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 07:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpWFb-00077z-RD for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 07:13:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpWFb-00076u-Jq for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 07:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hpWFa-00010W-Dp for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 07:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Jul 2019 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36742 X-GNU-PR-Package: emacs Original-Received: via spool by 36742-submit@debbugs.gnu.org id=B36742.15637939263789 (code B ref 36742); Mon, 22 Jul 2019 11:13:02 +0000 Original-Received: (at 36742) by debbugs.gnu.org; 22 Jul 2019 11:12:06 +0000 Original-Received: from localhost ([127.0.0.1]:60017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpWEf-0000z3-VF for submit@debbugs.gnu.org; Mon, 22 Jul 2019 07:12:06 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:45731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpWEd-0000yV-Fk for 36742@debbugs.gnu.org; Mon, 22 Jul 2019 07:12:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1563793885; bh=FwCam95t2agUSBxRe10kkQBdBAv98Doffu/AGAlUb0c=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Tmsd9Shyxm5nXAX7N0D9gP9Y5VDCsNltvX+Abw5DTbGmJdqiuXnV3TbqdHIvypwvc bGoUhnzGcwO4Mk/mwH9j8qhvhfGoTtSU0GIvPGMVlEsPyByHbhCTWRomR2ugUT6zPH Q1alH3e9CEQsuvWoUYZWmpPvfrsSG4vZKoUPsLhc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.91.238.185]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M9wrU-1hiwej2EX2-00B4uq; Mon, 22 Jul 2019 13:11:25 +0200 In-Reply-To: <788003112.20729758.1563633042446.JavaMail.zimbra@sjtu.edu.cn> (Fan Yang's message of "Sat, 20 Jul 2019 22:30:42 +0800 (CST)") X-Provags-ID: V03:K1:8HAFfJRXOm3ZcxaP8/6QgyGy9XKUfj8WBJG+g5EzjOr9+Z1kzaS u24R7/pm23c1ZWRyVmmzH3/zSYQg48rmfe4pSS/duCFFd0MZpmp9uh8CIDsa1Klf7GELqpp RVpmT98534ATXHBNqm7oUvoZBElS6ty2ANtbUWKpFJAtR7fWZ8YrZBk7BGbxCJzK7MSAU6+ InNH3JR/02WKlowYMjlbA== X-UI-Out-Filterresults: notjunk:1;V03:K0:ze9N6DUVdKc=:xBX5rtztIN6OaqvzZ9+1EC rjUgKJMXY2I2KN38RMWo8PzZjxWq1g0l4UI3yaGTnyt1zhd+xKc0xRLJ7WOy7byyjJGuDXWPj ItVdxmC1JnQ/g8bbCBIlh6hXUyN3NN+G8kEw+40+dP/RNdJoi26WVk4b7BJVvx3/7dQzZlgLO SnzRRVKAKi4mCYOUXCCt0SubO32F219u29tDitA/cd4TD1YrTAayCRANpg+kUlnhXboulYXSz DAxblvu8v9Qbs7ENU+AO5t/u6SrL+LjrEJdV0jEOqHXRy4APKamQrL8knoUXfTizY94Brg9IF VsNwljfqQrh6ZtPYLQve00P5fiJv4H+biiEAkb3H1FE9i8SieFrA40tCJDOORXEEhGtpQUUqX 0i+pZZXfxxSPpgzgmZOKGHqy2DPqqUWDVSZvOT46485cs7jZMQKH7Ys/mcLW+WyXkcsUkalWp FpHUCehyxxv/7GccqnfIRYBq7E+tEw1MemDp7tNAq2i1XgX2t5ONPEwxYWplTKh3yJCQrGKSi 5ql4IWRXhkD97ajrhCHDlqtsGyQ1mgYnZ+rEGS3f6i4bab+SuqyOUXQkpCBUVqr+yt175p9kl O5wNdtdiFDqb2A5HdideuD/Jl9TqwiCca1RhTFPqPZyTdrIahT1DJDTBFfHqvPJ0cl2uMOIH+ 2pJpwUBJlb18CnLKI4KJZCuKoe5A5ZS7EbRRrCyZ/cAdoUYsiSVR1D2QyicxnI1CBmc4EgjA5 taERPmINPr6dVVv6Bi5bTaC2SwZ4EtuLtd/PSpMR7iroKcXh9eE70rcRH8+Oxu9PzqRw4cyA 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: 209.51.188.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:163589 Archived-At: Fan Yang writes: Hi Fan, > * Bug description: > > When using "M-x shell" on a remote file (say "/scp:yf@val17:"), a bash > is started at the server "val17" as the user "yf". But the "*shell*" > buffer is started with an empty input ring. It does not read bash > history file ("/scp:yf@val17:~/.bash_history") into comint input ring. > > * What is expected: > > When using "M-x shell" on a remote file (say "/scp:yf@val17:"), a bash > is started at the server "val17" as the user "yf". The "*shell*" > 1. has the content of "/scp:yf@val17:~/.bash_history" as comint input > ring. And I can use "M-p" to insert previous command, use "M-r" to > isearch previous comamnd, etc. > 2. the commands I have input in this "*shell*" will be appended to > "/scp:yf@val17:~/.bash_history" after shell exit. > Just like what "shell-mode" does for local shell. I've fixed this in the Emacs repository, commit 7f95d2d407. It works as expected, but you shall be aware that the history file contains also the commands Tramp has sent in the background. You shall also set tramp-histfile-override to nil in order to get the expected history file. Do you have a chance to test with a recent Emacs 27.0.50? > Best Regards, > Fan Best regards, Michael.