From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.bugs Subject: bug#50186: Shell in emacs very annoying using zsh Date: Sat, 28 Aug 2021 13:28:00 -0300 Message-ID: References: <87y28na3dc.fsf@mail.linkov.net> <874kbbf92s.fsf@web.de> <874kbahlk9.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000009991605caa11637" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22809"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50186 <50186@debbugs.gnu.org>, Juri Linkov To: =?UTF-8?Q?=EF=BF=BD=EF=BF=BD=EF=BF=BD=CE=B7=C3=89?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 28 18:30:53 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mK1EL-0005oN-D3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Aug 2021 18:30:53 +0200 Original-Received: from localhost ([::1]:60280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mK1EJ-0000CF-GN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Aug 2021 12:30:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mK1CY-0007ZQ-4M for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 12:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mK1CX-0003yA-S2 for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 12:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mK1CX-0001d8-OU for bug-gnu-emacs@gnu.org; Sat, 28 Aug 2021 12:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eduardo Ochs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Aug 2021 16:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50186 X-GNU-PR-Package: emacs Original-Received: via spool by 50186-submit@debbugs.gnu.org id=B50186.16301681016197 (code B ref 50186); Sat, 28 Aug 2021 16:29:01 +0000 Original-Received: (at 50186) by debbugs.gnu.org; 28 Aug 2021 16:28:21 +0000 Original-Received: from localhost ([127.0.0.1]:54915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK1Bs-0001br-Kt for submit@debbugs.gnu.org; Sat, 28 Aug 2021 12:28:20 -0400 Original-Received: from mail-pj1-f49.google.com ([209.85.216.49]:41809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mK1Bp-0001bb-Rr for 50186@debbugs.gnu.org; Sat, 28 Aug 2021 12:28:19 -0400 Original-Received: by mail-pj1-f49.google.com with SMTP id z24-20020a17090acb1800b0018e87a24300so7170201pjt.0 for <50186@debbugs.gnu.org>; Sat, 28 Aug 2021 09:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gK07/3gC5SgGPKeTpky7Ps6+nV2ehdMYaAMaGpLGk6A=; b=Zh8BmqgrmDthwnFI9nP8don5fhvDmrmeW7zSfi9JGpOErEl3O1HbY59Q5s9lOIykVZ KMYU/gq07zPy/Ep7hQW84op75j2KFMDJLN29Hc4dC/LYABq2pyxlFnrISuKvt9HXysxK ruhh2yMQZp9Rou+SqM/jOQynYi+qk5zeqUe08W/gsuE3KUeKeJnhPdTQz6ly77qSD5q4 /fTy/g9NJCaf5r3LfSXHzWI6eTGouZ66JtNZDT8ZZfTm11hyOgJ8IAEt/gx1NbA1hVP7 XoAOMTR3OSru0gA9+Lmw7W7R13f3k1mrOFXqTWcCJq2zhStwohiPeaGnYtNBLbnlawa6 IOug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gK07/3gC5SgGPKeTpky7Ps6+nV2ehdMYaAMaGpLGk6A=; b=lw0r6SyP2vz5V3LfKG4qQ4CcwfmLc/MLtiroASzuf/mwsaOGObshU/3oTCtofPfkj1 E/P360zdnA2LqQH6NWpsgmRlRF10KO/7lQAIgPuGUr0tgE029OF6GG/h157mIpI8QNHD K1lqZb/7zSgAJ50dywdixiOnCNv5k6saTpCXONLUrRWrRTjaPQpjZoLEAtOs7AxeVaqB ukL8h7lGOTyYGGtIEtg5rYpZzneKeftwKiJszc3MwDmh151jLN7YX3+9BBwJW0kIwIwt VgYrv3YCn5gY59a1pdDGV4LqkNBNAYQDnnUsXB+OHWgnfNkF84Vl8sRFLuyAMghezh5n e8zw== X-Gm-Message-State: AOAM532XGRZkqDIv9uO0OCuCUHstPzAlxRXNipoezqmvovFiWa4rmF4P LA6IOCS4T4IM0Xtk/fnAcnZ0IeTCOMDnx38YUyw= X-Google-Smtp-Source: ABdhPJwZ5bGa04J2QAnspS3pV0WBqPQaU56twvueSyrr3ykjkjHgjzFt+yfHEsiPgrCmGtW+X18kClt4WxSS2bZxWV0= X-Received: by 2002:a17:90a:5b0d:: with SMTP id o13mr23662400pji.117.1630168091825; Sat, 28 Aug 2021 09:28:11 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212883 Archived-At: --00000000000009991605caa11637 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Zsh is one of the programs that I need to run with `comint-process-echoes' set to t in the comint buffer... ?=CE=B7=C3=89/orbitingflea, can you define these two functions, (defun det () (interactive) (setq comint-process-echoes t)) (defun den () (interactive) (setq comint-process-echoes nil)) and then use Zsh a bit with comint-process-echoes set to true and a bit with comint-process-echoes set to nil - use `M-x det' and `M-x den' to change the value - to see if something changes? [[]], Eduardo Ochs http://angg.twu.net/#eev On Sat, 28 Aug 2021 at 13:06, =EF=BF=BD=EF=BF=BD=EF=BF=BD=CE=B7=C3=89 via B= ug reports for GNU Emacs, the Swiss army knife of text editors wrote: > Hello Juri, > > > Actually, I see no problems with multi-line prompts in Emacs. > > I tried to use "\n" in PS1 in bash, and then run M-x shell. > > No problems noticed :) > > Wow! That's surprising to me. > Maybe I should show my zsh config file that generating this bug: > > export ZSH=3D"/home/friend/.oh-my-zsh" > ZSH_THEME=3D"ys" > plugins=3D(git) > source $ZSH/oh-my-zsh.sh > export DISPLAY=3D`cat /etc/resolv.conf | grep nameserver | awk '{print > $2}'`:0.0 > export PATH=3D"/home/friend/.local/bin:$PATH" > > Here I used "ys" theme of oh-my-zsh, and it has multi-line prompt. > By the way, I tested bash with multi-line prompt, as you said. No problem= . > So the problem comes from zsh? > --00000000000009991605caa11637 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Zsh is one of the programs that I need to run with
`com= int-process-echoes' set to t in the comint buffer...

?=CE=B7=C3= =89/orbitingflea, can you define these two functions,

=C2=A0 (defun = det () (interactive) (setq comint-process-echoes t))
=C2=A0 (defun den (= ) (interactive) (setq comint-process-echoes nil))

and then use Zsh a= bit with comint-process-echoes set to true and a
bit with comint-proces= s-echoes set to nil - use `M-x det' and `M-x
den' to change the = value - to see if something changes?

=C2=A0 [[]],
=C2=A0 =C2=A0 E= duardo Ochs
=C2=A0 =C2=A0 http://an= gg.twu.net/#eev



On Sat, 28 Aug 2021 = at 13:06, =EF=BF=BD=EF=BF=BD=EF=BF=BD=CE=B7=C3=89 via Bug reports for GNU E= macs, the Swiss army knife of text editors <bug-gnu-emacs@gnu.org> wrote:
Hello Juri,

> Actually, I see no problems with multi-line prompts in Emacs.
>= I tried to use "\n" in PS1 in bash, and then run M-x shell.
&= gt; No problems noticed :)

Wow! That's surpris= ing to me.
Maybe I should show my zsh config file that generating= this bug:

export ZSH=3D"/home/friend/.o= h-my-zsh"
ZSH_THEME=3D"ys"
plugins=3D(gi= t)
source $ZSH/oh-my-zsh.sh
export DISPLAY=3D`cat /etc/= resolv.conf | grep nameserver | awk '{print $2}'`:0.0
exp= ort PATH=3D"/home/friend/.local/bin:$PATH"

Here I used "ys" theme of oh-my-zsh, and it has multi-li= ne prompt.
By the way, I tested bash with multi-line prompt, as y= ou said. No problem.
So the problem comes from zsh?
--00000000000009991605caa11637--