GNU bug report logs - #31605
25.3; tramp-terminal-type too obscure

Previous Next

Package: emacs;

Reported by: Eli Barzilay <eli <at> barzilay.org>

Date: Sat, 26 May 2018 22:16:01 UTC

Severity: minor

Found in version 25.3

Fixed in version 26.2

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Barzilay <eli <at> barzilay.org>
Cc: 31605 <at> debbugs.gnu.org
Subject: bug#31605: 25.3; tramp-terminal-type too obscure
Date: Tue, 29 May 2018 19:46:28 +0200
Eli Barzilay <eli <at> barzilay.org> writes:

Hi Eli,

>> The majority of Tramp users does not apply "M-x shell" and
>> friends. They are just using Tramp for remote file handling.
>
> I'm not talking about a remote shell, just the general running of a
> subshell inside Emacs.  If *that* is not a popular thing to do then I'm
> apparently living in a bubble...

No, you aren't. There are many Tramp users running a remote shell in
Emacs. But this is not the majority of Tramp users ...

>> It is still possible that you reconfigure everything, and thanks again
>> that you have told me that it needs better documentation. But I'm not
>> conviced it will be better to change the defaults.
>
> Oh, I *don't* suggest changing the default!  (See the comment in the
> original bug: doing that will break existing shell configurations that
> detect "dumb".)  I just think that it should be mentioned at least in
> the section that talks about the common zsh-hanging problem -- something
> like the small addition I did to the wiki page.

I do not want to write an example which does not use the default. People
tend to copy example lines, and I want to encourage them using the default.

As compromise, I have rephrased the manual:

--8<---------------cut here---------------start------------->8---
          When using zsh on remote hosts, disable zsh line editor
          because zsh uses left-hand side and right-hand side prompts
          in parallel.  Add the following line to ‘~/.zshrc’:

               [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return

          This uses the default value of ‘tramp-terminal-type’,
          ‘"dumb"’, as value of the ‘TERM’ environment variable.  If
          you want to use another value for ‘TERM’, change
          ‘tramp-terminal-type’ accordingly.
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.




This bug report was last modified 6 years and 360 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.