GNU bug report logs - #50186
Shell in emacs very annoying using zsh

Previous Next

Package: emacs;

Reported by: "���η�" <orbitingflea <at> qq.com>

Date: Tue, 24 Aug 2021 13:54:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: "���η�" <orbitingflea <at> qq.com>
To: 50186 <at> debbugs.gnu.org
Subject: bug#50186: More details about bug#50186: Shell in emacs very annoying using zsh
Date: Thu, 26 Aug 2021 16:47:57 +0800
[Message part 1 (text/plain, inline)]
When use zsh instead of bash, shell become very annoying. Even if I do not edit the shell buffer, but changing its size, there will be extra lines generated in the buffer, which is not expected.



Here is a recipe to reproduce the bug. See attached for screenshots.


(1) Starting from emacs -Q.


&nbsp; [1.png in attached]


(2) M-x shell. Here my default shell is zsh, and I also have oh-my-zsh installed.


&nbsp; [2.png in attached]


You can see there are multi-line "leading info" (sorry for my poor English, I mean the characters on the left of the cursor before you enter a command in the shell, showing the username and the current directory; I don't know what it is called in English), but in bash there is only one line instead. I guess this is the key of the problem.


By the way, maybe there are different "schemes" or "styles" for zsh, for some of them there will be multi-line leading info.


(3) Repeat C-x 1, C-x 2, C-x 1, C-x 2, ...


&nbsp; [3.png &amp; 4.png in attached]


There will be more and more lines in the shell, which is unexpected, because you did not edit the buffer.
[Message part 2 (text/html, inline)]
[bug-zsh-emacs-screenshots.zip (application/octet-stream, attachment)]

This bug report was last modified 3 years and 297 days ago.

Previous Next


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