From unknown Sun Jun 22 07:56:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42922: 27.1; shell-command-dont-erase-buffer not honored when the existing shell buffer is remote Resent-From: Sean McAfee Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Aug 2020 21:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42922 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42922@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1597787435975 (code B ref -1); Tue, 18 Aug 2020 21:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2020 21:50:35 +0000 Received: from localhost ([127.0.0.1]:37257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k89V4-0000Fe-5F for submit@debbugs.gnu.org; Tue, 18 Aug 2020 17:50:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:53964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k89V1-0000FV-Eo for submit@debbugs.gnu.org; Tue, 18 Aug 2020 17:50:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k89V1-0000e4-3E for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 17:50:31 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:37326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k89Uy-0007Ch-8p for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 17:50:30 -0400 Received: by mail-wm1-x32d.google.com with SMTP id k8so301422wma.2 for ; Tue, 18 Aug 2020 14:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Q4y/dmEC5nQjZOuev9L/SvYEgirMFB8KigKHs4IMit8=; b=jDc576v95ZHoDDDbZAbJ6CFg0HjybQamBSa1EO/y7fdzu932v2aB/tSxZf5n7NO6Bn sU9qtef/nIPjXeocl/O9pL2uCBJCj43s8vlcbKIgRO8+lvNNoxkc0aRP01powIUb5f3P swtLJWGvZQw7WYCjYpZA/qQzLRPNjvN1fbycZdp+j4F6l8DaIhzkNdkwRksipVM53qoa vVnrMrpN5h3cALg3Oor/hnEUtAzwTFDBLR/a9hgGL6QolpELgs1Jnxsfe1fbHA8OtbAp c8TlJZHktM99QxIDLzAkXRq2I35zwll0RN9C9Tt5EicYTabcCjmts7OZaO0pfF+9e5RZ i09A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Q4y/dmEC5nQjZOuev9L/SvYEgirMFB8KigKHs4IMit8=; b=nbhXYC9o4NFRjZaATGqX5h59sCKxNgqMytG3S0xg5onrmhsEQAzY5YXPf7SqtZ5GoD cscDXAULYtvemuF5SmBxpOYFxL/W54hXTT8PlQahMLBeUYcWj6ASEyDS2w51ETu7RsL9 ShYKwwlF244S8VOwcvsz9Kkyn1X8+2Ftq98sE0K7ch54atrr9t8gnYOsT/yJuVMV87Zr 3BJLUYL49j7m0mbURO+UJfrVFV2CG/kYDc5RVSSC5vDpn1idhEfwUBdMJyGJZ1zXQDge RjPRfXYkB3D/RZSEyB5KBT5Wz4R8ecrKpbzTHHB1vHrV2MeUb0P9xRPQRJaSCs5sHkVK w1Vg== X-Gm-Message-State: AOAM531mHxRHZYWza02MDIlWp3VU1zjiEVbK7ekg6Ku4elPbetNyq1Vi s/zsDKsPTWUqZhUPFao4i6FWboFQjkacCm4mh0uohzpcj2XaPQ== X-Google-Smtp-Source: ABdhPJyHRyej687jak/w9hu8mWAV6NrTbKIBxoc9nO7NBhmd3FSzRI4Z4lpip3DsZJrIhk93jTxbS9ieDJcK5ZFmoVM= X-Received: by 2002:a1c:39d4:: with SMTP id g203mr1800284wma.107.1597787425586; Tue, 18 Aug 2020 14:50:25 -0700 (PDT) MIME-Version: 1.0 From: Sean McAfee Date: Tue, 18 Aug 2020 14:50:14 -0700 Message-ID: Content-Type: multipart/alternative; boundary="000000000000edc18d05ad2ddf2c" Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=eefacm@gmail.com; helo=mail-wm1-x32d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000edc18d05ad2ddf2c Content-Type: text/plain; charset="UTF-8" Starting from emacs -Q: Set the variable shell-command-dont-erase-buffer to a true value, say end-last-out. Run an asynchronous shell command: M-& echo foo RET The buffer *Async Shell Command* appears, showing the word "foo". Run another async command: M-& echo bar RET The word "bar" is appended on a new line in the existing async shell command buffer, as expected. Change to that buffer, and cd to any remote directory: M-x cd RET /ssh:remote: RET Run another async command, to be executed in the remote directory: M-& echo baz RET Now the word "baz" entirely replaces the contents of the buffer, instead of being appended on a new line. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2020-08-18 built on SeanMc Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.5 LTS Recent messages: Loading /home/mcafee/.emacs-custom.el (source)...done Waiting for git... [2 times] Iedit default key binding is C-; Loading /home/mcafee/emacs/laptop.el (source)...done Package cl is deprecated Warning: desktop file appears to be in use by PID 15481. Using it may cause conflicts. Use it anyway? (y or n) n Desktop file in use; not loaded. Turning on magit-auto-revert-mode...done For information about GNU Emacs and the GNU system, type C-h C-a. Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: volatile-highlights-mode: t projectile-mode: t elisp-slime-nav-mode: t global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t google-this-mode: t global-flycheck-mode: t flycheck-mode: t minibuffer-depth-indicate-mode: t ido-vertical-mode: t global-undo-tree-mode: t undo-tree-mode: t paredit-mode: t override-global-mode: t desktop-save-mode: t winner-mode: t show-paren-mode: t electric-pair-mode: t savehist-mode: t ido-everywhere: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t prettify-symbols-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/emacs/ack hides /home/mcafee/.emacs.d/elpa/ack-1.10/ack ~/emacs/chinese hides /home/mcafee/emacs-27.1/lisp/language/chinese ~/emacs/japanese hides /home/mcafee/emacs-27.1/lisp/language/japanese /home/mcafee/.emacs.d/elpa/seq-20151121.1017/seq hides /home/mcafee/emacs-27.1/lisp/emacs-lisp/seq Features: (shadow sort mail-extr emacsbug sendmail vterm vterm-module dired-launch calfw-cal calfw holidays hol-loaddefs cal-menu calendar cal-loaddefs xref-js2 vc vc-dispatcher js2-mode-expansions js2-mode js-mode-expansions js cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs dired-ranger dired-filter f s dired-hacks-utils dired-aux dired-x shell-pop term disp-table ehelp beginend volatile-highlights iedit iedit-lib multiple-cursors-core rect dtrt-indent tramp-cache tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp projectile grep ibuf-ext ibuffer ibuffer-loaddefs elisp-slime-nav etags fileloop generator xref project magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient magit-git magit-section magit-utils crm log-edit message rmc puny format-spec rfc822 mml mml-sec epa epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async shell pcomplete server ido-completing-read+ memoize cus-edit cus-start cus-load minibuf-eldef google-this flycheck find-func diminish gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search time-date mail-utils mm-util mail-prsvr wid-edit pcase autoinsert misc sanityinc-tomorrow-blue-theme color-theme-sanityinc-tomorrow color mb-depth ido-vertical-mode dired-details+ dired dired-loaddefs dired-details change-inner expand-region text-mode-expansions er-basic-expansions expand-region-core expand-region-custom undo-tree diff ack derived compile paredit dash cl-extra help-mode use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core desktop frameset finder-inf winner paren elec-pair savehist url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap hippie-exp comint ansi-color ring thingatpt perl-mode ido anchored-transpose-autoloads apt-utils-autoloads dired-details-autoloads edmacro kmacro fix-word highlight-tail-autoloads advice rx slime-autoloads cl w3m-load info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 590751 25411) (symbols 48 39337 5) (strings 32 186612 5278) (string-bytes 1 5596669) (vectors 16 57561) (vector-slots 8 684501 36918) (floats 8 307 46) (intervals 56 447 115) (buffers 1000 11)) --000000000000edc18d05ad2ddf2c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Starting from emacs -Q:

Set th= e variable shell-command-dont-erase-buffer to a true value, say
end-last= -out.

Run an asynchronous shell command: M-& echo foo RET
The buffer *Async Shell Command* appears, showing the word "foo"= .

Run another async command: M-& echo bar RET

The word &q= uot;bar" is appended on a new line in the existing async shell
comm= and buffer, as expected.

Change to that buffer, and cd to any remote= directory:
M-x cd RET /ssh:remote: RET

Run another async command= , to be executed in the remote directory:
M-& echo baz RET

No= w the word "baz" entirely replaces the contents of the buffer, in= stead
of being appended on a new line.



In GNU Emacs 27.1 = (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
=C2=A0of 2020-08-18= built on SeanMc
Windowing system distributor 'The X.Org Foundation&= #39;, version 11.0.11906000
System Description: Ubuntu 18.04.5 LTS
Recent messages:
Loading /home/mcafee/.emacs-custom.el (source)...done=
Waiting for git... [2 times]
Iedit default key binding is C-;
Loa= ding /home/mcafee/emacs/laptop.el (source)...done
Package cl is deprecat= ed
Warning: desktop file appears to be in use by PID 15481.
Using it = may cause conflicts.=C2=A0 Use it anyway? (y or n) n
Desktop file in use= ; not loaded.
Turning on magit-auto-revert-mode...done
For informatio= n about GNU Emacs and the GNU system, type C-h C-a.

Configured featu= res:
XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INO= TIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT= ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER LCMS= 2 GMP

Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
= =C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf= -8-unix

Major mode: Lisp Interaction

Minor modes in effect:=C2=A0 volatile-highlights-mode: t
=C2=A0 projectile-mode: t
=C2=A0= elisp-slime-nav-mode: t
=C2=A0 global-magit-file-mode: t
=C2=A0 magi= t-auto-revert-mode: t
=C2=A0 global-git-commit-mode: t
=C2=A0 async-b= ytecomp-package-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 google-t= his-mode: t
=C2=A0 global-flycheck-mode: t
=C2=A0 flycheck-mode: t=C2=A0 minibuffer-depth-indicate-mode: t
=C2=A0 ido-vertical-mode: t=C2=A0 global-undo-tree-mode: t
=C2=A0 undo-tree-mode: t
=C2=A0 pare= dit-mode: t
=C2=A0 override-global-mode: t
=C2=A0 desktop-save-mode: = t
=C2=A0 winner-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 electric-= pair-mode: t
=C2=A0 savehist-mode: t
=C2=A0 ido-everywhere: t
=C2= =A0 cl-old-struct-compat-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global= -eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t=C2=A0 mouse-wheel-mode: t
=C2=A0 global-prettify-symbols-mode: t
= =C2=A0 prettify-symbols-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-n= ame-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-m= ode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2= =A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Load-path s= hadows:
~/emacs/ack hides /home/mcafee/.emacs.d/elpa/ack-1.10/ack
~/e= macs/chinese hides /home/mcafee/emacs-27.1/lisp/language/chinese
~/emacs= /japanese hides /home/mcafee/emacs-27.1/lisp/language/japanese
/home/mca= fee/.emacs.d/elpa/seq-20151121.1017/seq hides /home/mcafee/emacs-27.1/lisp/= emacs-lisp/seq

Features:
(shadow sort mail-extr emacsbug sendmail= vterm vterm-module dired-launch
calfw-cal calfw holidays hol-loaddefs c= al-menu calendar cal-loaddefs
xref-js2 vc vc-dispatcher js2-mode-expansi= ons js2-mode
js-mode-expansions js cc-mode-expansions cc-mode cc-fonts c= c-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defsdired-ranger dired-filter f s dired-hacks-utils dired-aux dired-x
shell= -pop term disp-table ehelp beginend volatile-highlights iedit
iedit-lib = multiple-cursors-core rect dtrt-indent tramp-cache tramp-sh
tramp tramp-= loaddefs trampver tramp-integration files-x tramp-compat
parse-time iso8= 601 ls-lisp projectile grep ibuf-ext ibuffer
ibuffer-loaddefs elisp-slim= e-nav etags fileloop generator xref project
magit-submodule magit-obsole= te magit-popup magit-blame magit-stash
magit-reflog magit-bisect magit-p= ush magit-pull magit-fetch magit-clone
magit-remote magit-commit magit-s= equence magit-notes magit-worktree
magit-tag magit-merge magit-branch ma= git-reset magit-files magit-refs
magit-status magit magit-repos magit-ap= ply magit-wip magit-log
which-func imenu magit-diff smerge-mode diff-mod= e magit-core
magit-autorevert autorevert filenotify magit-margin magit-t= ransient
magit-process magit-mode git-commit transient magit-git magit-s= ection
magit-utils crm log-edit message rmc puny format-spec rfc822 mml = mml-sec
epa epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2= 231
mailabbrev gmm-utils mailheader pcvs-util add-log with-editor
asy= nc-bytecomp async shell pcomplete server ido-completing-read+ memoize
cu= s-edit cus-start cus-load minibuf-eldef google-this flycheck find-func
d= iminish gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045
iet= f-drums text-property-search time-date mail-utils mm-util mail-prsvr
wid= -edit pcase autoinsert misc sanityinc-tomorrow-blue-theme
color-theme-sa= nityinc-tomorrow color mb-depth ido-vertical-mode
dired-details+ dired d= ired-loaddefs dired-details change-inner
expand-region text-mode-expansi= ons er-basic-expansions
expand-region-core expand-region-custom undo-tre= e diff ack derived
compile paredit dash cl-extra help-mode use-package u= se-package-ensure
use-package-delight use-package-diminish use-package-b= ind-key bind-key
easy-mmode use-package-core desktop frameset finder-inf= winner paren
elec-pair savehist url url-proxy url-privacy url-expand ur= l-methods
url-history url-cookie url-domsuf url-util mailcap hippie-exp = comint
ansi-color ring thingatpt perl-mode ido anchored-transpose-autolo= ads
apt-utils-autoloads dired-details-autoloads edmacro kmacro fix-word<= br>highlight-tail-autoloads advice rx slime-autoloads cl w3m-load info
p= ackage easymenu browse-url url-handlers url-parse auth-source cl-seq
eie= io eieio-core cl-macs eieio-loaddefs password-cache json subr-x map
url-= vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
tool= tip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel t= erm/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-= opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-m= ode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer s= elect scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term= /tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang misc-la= ng vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932= hebrew greek romanian slovak czech european
ethiopic indian cyrillic ch= inese composite charscript charprop
case-table epa-hook jka-cmpr-hook he= lp simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-= face macroexp files
text-properties overlay sha1 md5 base64 format env c= ode-pages mule
custom widget hashtable-print-readable backquote threads = dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-s= etting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs= )

Memory information:
((conses 16 590751 25411)
=C2=A0(symbols= 48 39337 5)
=C2=A0(strings 32 186612 5278)
=C2=A0(string-bytes 1 559= 6669)
=C2=A0(vectors 16 57561)
=C2=A0(vector-slots 8 684501 36918)=C2=A0(floats 8 307 46)
=C2=A0(intervals 56 447 115)
=C2=A0(buffers = 1000 11))

--000000000000edc18d05ad2ddf2c-- From unknown Sun Jun 22 07:56:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42922: 27.1; shell-command-dont-erase-buffer not honored when the existing shell buffer is remote Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Aug 2020 08:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42922 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Sean McAfee Cc: 42922@debbugs.gnu.org Received: via spool by 42922-submit@debbugs.gnu.org id=B42922.159782716714351 (code B ref 42922); Wed, 19 Aug 2020 08:53:01 +0000 Received: (at 42922) by debbugs.gnu.org; 19 Aug 2020 08:52:47 +0000 Received: from localhost ([127.0.0.1]:37818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8Jpu-0003jP-TA for submit@debbugs.gnu.org; Wed, 19 Aug 2020 04:52:47 -0400 Received: from mout.gmx.net ([212.227.17.20]:46859) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8Jpr-0003j9-6i for 42922@debbugs.gnu.org; Wed, 19 Aug 2020 04:52:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1597827156; bh=VpOOND/2rD1fN10LI9e7WzjyQu158uuaqUM/nCJ2rN0=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=eYcE2huLLDRJvk90ia/+l7d6XYmqV4nXXcsOoxpybtfxcP+bsZ0LJI/qYNHp5GxpE 3LYGGgGrIbSPCvyLUoJox4ZJHyICJMXJhfGwyYEuz/sIxpNhZMr3neNnj+FepJZdlv kQsF72ao+tL4k7UF0WkOxF01NYe7toVk4wiTtqUU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.158.121]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mo6qp-1kSmcR0XHP-00pae7; Wed, 19 Aug 2020 10:52:36 +0200 From: Michael Albinus References: Date: Wed, 19 Aug 2020 10:52:35 +0200 In-Reply-To: (Sean McAfee's message of "Tue, 18 Aug 2020 14:50:14 -0700") Message-ID: <87tuwzhvak.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:da/q+Z73XbAroB6JSqweYvT6tOYWGl79ca6B4SDrT7AUWGf4IfM Eg590RF6otk+Zc1qwgUFfYaInBxXAKX25Ypzi+bJGwsaGSa6Ox0ZRITv2YVzMHm0iNLrCoX cnMWLLmv4S9e2pFo7aP9ul77Lg1M/HRyNRMth/3WIqKfj5oxYK+fJK1wCDNuqHz2DPEmvu8 tnjhE3zxmrJi34iSQJL9g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:cakxu/QPV78=:68lswRonGPgPAITFVHhvwU EqSg4EbyyPM9oGaLvB5HckK+4SzzGfDVXApx0nu3m6EN/rPntQxslicHjdItqffgM+3+NFo0+ 4ay/rL0+4VDtA66dx7cBNMlw8hRSdDBsUIYN0GzkQ5qUKxbhMiLqvPWfkGpMpK5P9uHAkfKnX rOdGMc1rf8n3aVCrd66Il5Tvjm2O8PpH7iasuhL+DwaJchnnyao+DA7uWeR81++KE7Bj7UoGv o9s+8P1/2TZai9TQ2Cc/FCKFsfPfqQb4Ky52i5JNPho4nB/FoGFbCZ8jiVGgNinhA7FIKhzGL Sh9srbKIu4BTqvaZSJssRWQ4yAJgqDl3WVHkn2yRtIjwoW6NWPNWsryg56TeIiBgqu4V1WV1r GLd29eECftYBvWhNNhE0cckbWe0wcERsYJ9nQ9s6TWGformKpYX5V/B4xhNeSVpUOPlcS6r3S ycUGVdJzU/TEZ23fqD56qq1xrwylobDcL9KA6KSlvb2Rp9+NtGbUgda9acZ914DtahCPXAa7B 4nlLNzs4ZKb2QjHf1A62a2yYUasEJFjPDCumDPhcNqojyjwsEX4+urOBKmbshDOT5NzwwZOQy IefVxqymiykUM+50cuMbtX3oUpr9LeyUwUUhutVBtYHefNo6uJW8whCdNL0ZVTZTc2i5+bn+e rKT3jvVubikCbimHqPIuyucXDzryyYJFp64yxxGUdhXbkCau9UWX3+RQtkyKxz01iLfFSS1Sh lxbYk0QYUMrX5mNQ4lNIsZkUH+4aW0ZCjqEs6Hi189A5kG4aqM2oQ808hIvT3mdaabyFFuwTj 3wEsUUgP1R69F40exGzWHksgKra+fZenOk8woh+iyD3hPXXui7f98AdEGewevYcUospU987FR YOMLLEEkenGvjmecnChwxWElcmA7/ymDl4M1B6jsX3CkXj8YS6LRIVWW/v8A2MxJ5BIpbA/5g duoXfip1l+aebEJxBup1h+kIiTPsF2mscZd3sDrK9uFlUW4G2AAVcoATU0eUW0W/cdkShVOsR 9C0CDKYGKpeACYvbZ4bPDlYRxUtoaZlMtQM7MY0BpqkFto7SXiBCiKwX5TnIPqLrAQ6N0x5S6 SmwlHBEXazqjsxSC94qQBwtEgWe8ncqc9bTcIZvQ6w6ivEqRC4g0S/T8FZTU0SrCBf4TBiORw xPJylosi/3nstvBPbnsYHLh1NemllNO9bT9kbZwBFKvJxbqWTvxRNDoNTxuyljjk3kPUUvUCZ E2eV5iW4b+nEQIOvbddmM+kSJt6C31JQ452ywxQ== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Sean McAfee writes: Hi Sean, > Starting from emacs -Q: > > Set the variable shell-command-dont-erase-buffer to a true value, say > end-last-out. > > Run an asynchronous shell command: M-& echo foo RET > > The buffer *Async Shell Command* appears, showing the word "foo". > > Run another async command: M-& echo bar RET > > The word "bar" is appended on a new line in the existing async shell > command buffer, as expected. > > Change to that buffer, and cd to any remote directory: > M-x cd RET /ssh:remote: RET > > Run another async command, to be executed in the remote directory: > M-& echo baz RET > > Now the word "baz" entirely replaces the contents of the buffer, > instead > of being appended on a new line. This is bug#39067. > In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) > of 2020-08-18 built on SeanMc > Windowing system distributor 'The X.Org Foundation', version > 11.0.11906000 > System Description: Ubuntu 18.04.5 LTS The fix didn't find its way into Emacs 27.1, because it happened when Emacs 27.1 was already in pretest. The fix is contained in Emacs' master branch (aka Emacs 28.0.50), and in Tramp 2.4.4.1 of GNU ELPA, which you can install. It will be merged into the emacs-27 branch, Emacs 27.2 will contain the fix. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 19 06:54:08 2020 Received: (at control) by debbugs.gnu.org; 19 Aug 2020 10:54:08 +0000 Received: from localhost ([127.0.0.1]:38052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8LjM-0006rd-Ey for submit@debbugs.gnu.org; Wed, 19 Aug 2020 06:54:08 -0400 Received: from mail-yb1-f173.google.com ([209.85.219.173]:44994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8LjK-0006r8-63 for control@debbugs.gnu.org; Wed, 19 Aug 2020 06:54:07 -0400 Received: by mail-yb1-f173.google.com with SMTP id i10so13059783ybt.11 for ; Wed, 19 Aug 2020 03:54:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to; bh=RTRye55FS8hh8F+TWBqu9noHdl8TR1nu5Fwse2BPbZQ=; b=LkX0leopBhRciBQSvmNsMai+Zpd11EMwOiTwqg6zKp4rFIPTxRIy0Oj+7gyUKXvzUT KTYluXzqqFONPIBKYDlrLA2CKjJWSu0rWz88GzmUrrZ7NdTHWoN6GUa5Sn2NIQDozLkI g1HhDrBfZn0PP/5Q7XnEAIx7LL2ojFcgIv5u29P6ubbckfysywgidYuDk21mxyr/d0lj rJbjVw7fmbIqa90QOQMXj8vG9HXBDjupeC6jM+Rdan6nM7NSRjTo43tjabJAlWaY79D9 bsJdSCLhAmBdxerK0B7EL3b7RbHx0aEZtu3Q+2+GuutwFlVEodqAjlraTXVKXZOjp5vO vYpQ== X-Gm-Message-State: AOAM5300xdCtHMCDySfOtvfYDZfE3bxpzTRf5NwirOGHDRY1oS3YRBpq EwccL5SOtREWvSKfr+Q0vYMHzU914kap3Df43P3Vo9ZhRZdkVw== X-Google-Smtp-Source: ABdhPJxj6vp2JsPKRFNAy8e5XnCU/Lpjm76IGlgduoSV5BS04hD4YSjTzrAX7qH6LOsK9N7zFd6FGplxbnBSbkrpfqE= X-Received: by 2002:a25:4609:: with SMTP id t9mr31778316yba.231.1597834440620; Wed, 19 Aug 2020 03:54:00 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 19 Aug 2020 10:54:00 +0000 From: Stefan Kangas In-Reply-To: <87tuwzhvak.fsf@gmx.de> (Michael Albinus's message of "Wed, 19 Aug 2020 10:52:35 +0200") References: <87tuwzhvak.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 19 Aug 2020 10:54:00 +0000 Message-ID: Subject: Re: bug#42922: 27.1; shell-command-dont-erase-buffer not honored when the existing shell buffer is remote To: control Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: unarchive 39067 forcemerge 39067 42922 thanks Michael Albinus writes: > This is bug#39067. Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.173 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.173 listed in list.dnswl.org] 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 1.0 PDS_TONAME_EQ_TOLOCAL_VSHORT Very short body and From looks like 2 different emails X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) unarchive 39067 forcemerge 39067 42922 thanks Michael Albinus writes: > This is bug#39067.