From: Fan_Yang <Fan_Yang@sjtu.edu.cn>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 36742@debbugs.gnu.org
Subject: bug#36742: 25.2; shell-mode over TRAMP does not read remote history file as comint input ring
Date: Tue, 23 Jul 2019 09:55:35 +0800 [thread overview]
Message-ID: <5B22982A-F6D3-4615-B3C9-C63019B27D99@sjtu.edu.cn> (raw)
In-Reply-To: <87h87egw86.fsf@gmx.de>
[-- Attachment #1: Type: text/plain, Size: 1876 bytes --]
Hi Michael!
I have cloned the git repo and tested your commit. It works well in my
environment!
> ...but you shall be aware that the history file contains also the
> commands Tramp has sent in the background.
I see. It is reasonable and acceptable.
> You shall also set tramp-histfile-override to nil in order to get the
> expected history file.
OK, thanks for reminding~
Fan
> 在 2019年7月22日,19:11,Michael Albinus <michael.albinus@gmx.de> 写道:
>
> Fan Yang <fan_yang@sjtu.edu.cn <mailto:fan_yang@sjtu.edu.cn>> 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.
[-- Attachment #2: Type: text/html, Size: 12907 bytes --]
next prev parent reply other threads:[~2019-07-23 1:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-20 14:30 bug#36742: 25.2; shell-mode over TRAMP does not read remote history file as comint input ring Fan Yang
2019-07-22 11:11 ` Michael Albinus
2019-07-23 1:55 ` Fan_Yang [this message]
2019-07-23 7:08 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5B22982A-F6D3-4615-B3C9-C63019B27D99@sjtu.edu.cn \
--to=fan_yang@sjtu.edu.cn \
--cc=36742@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).