From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#71554: 29.3; eshell-command async buffer behavior Date: Fri, 5 Jul 2024 13:23:26 -0700 Message-ID: References: <87frtfpqyn.fsf@librehacker.com> <87ikyb8igc.fsf@posteo.net> <86tthvwdxp.fsf@gnu.org> <87ed8z8duo.fsf@posteo.net> <87a5jm94b6.fsf@posteo.net> <874j9ogjfo.fsf@posteo.net> <3ed3832f-e874-ab89-52c3-c0c32650cb33@gmail.com> <86o77qbjv9.fsf@gnu.org> <87r0c87a48.fsf@posteo.net> <86plrs75my.fsf@gnu.org> <87r0c8nyp4.fsf@posteo.net> <865xtk6qkl.fsf@gnu.org> <87le2gyqq8.fsf@posteo.net> <87h6d3zz52.fsf@posteo.net> <877cdz7k6g.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19294"; mail-complaints-to="usenet@ciao.gmane.io" Cc: christopher@librehacker.com, Eli Zaretskii , 71554@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 05 22:25:27 2024 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 1sPpUl-0004u4-Mk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Jul 2024 22:25:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPpUL-0007yM-CY; Fri, 05 Jul 2024 16:25:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPpUJ-0007xq-JH for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2024 16:24:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPpUJ-0006VY-BA for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2024 16:24:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPpUM-0002BG-AP for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2024 16:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jul 2024 20:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71554 X-GNU-PR-Package: emacs Original-Received: via spool by 71554-submit@debbugs.gnu.org id=B71554.17202110788339 (code B ref 71554); Fri, 05 Jul 2024 20:25:02 +0000 Original-Received: (at 71554) by debbugs.gnu.org; 5 Jul 2024 20:24:38 +0000 Original-Received: from localhost ([127.0.0.1]:45081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPpTx-0002AR-VO for submit@debbugs.gnu.org; Fri, 05 Jul 2024 16:24:38 -0400 Original-Received: from mail-pl1-f178.google.com ([209.85.214.178]:52656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPpTw-0002AC-Hw for 71554@debbugs.gnu.org; Fri, 05 Jul 2024 16:24:36 -0400 Original-Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-1fafb9a33b3so11332005ad.1 for <71554@debbugs.gnu.org>; Fri, 05 Jul 2024 13:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720211007; x=1720815807; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=/YsaT4XhvUcovuaqAGBUGOTVBsrVX/dkdzmfPAg5dPo=; b=lOVOCeC5Yg/z1LSkT8xYjugRXPfQz7Ji8KmnjWSk/yAJWuUVWRX8e0FJb5FwI5VUCP gaBTck1zRUvMy7rI4b+6mbMDZ//P6IRwdxF6H8kpfI4Cj1u0317mtQ22tmixnr/QdBcI kmIVEmXUWsygOIu7coLBEeQMEUuzY2RoPVwHjPXbEg7lrhZxB555eqbRatDFqdv5Q1Id /KJR2t0yyyASfsDy+WgAYJ05eFzrJDPGHAFWAWe7hjXjtu1ULNbyMptf7boBvdKCce7Q Ij+NdOb1YVU12e+qMNZw1vgO4lIvwhqE7dsAfooRCHd53EGDYU5zMDHBpcEGjuF1G090 OSMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720211007; x=1720815807; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/YsaT4XhvUcovuaqAGBUGOTVBsrVX/dkdzmfPAg5dPo=; b=lrb3i4AL5kJxlb9e2lX3enOB1HiCtZrv0+VhgeUusoPq/yqrezpZhj7dN9P2dIjy1o mmEDn8VABKO/sKitbDtvqzsOV5P4uoHx2WpipwOFH8xdbgrjAh32DGfBf6A78KDSUJ5E bx5OFmTOSQQJPpCLEWw7AKG2XceUFG7b4b5VdArEx8K+nzayApissuT3MSxZTnTgVYrE fm640fbsU31Hxv3TaYtpE6rrJmq8P241eMFbPAOW9gfFjA+8pJh0GWgSwRiqC0LlCOLO RyBVYXbKg/dRGXkzfTacNtcIMvcnsruaA7RQRVBwT1w6SqORTY1t6cU6+9WSEH2/PynE /0qQ== X-Forwarded-Encrypted: i=1; AJvYcCXAu+/hHdtKJtATRzob0Qf5FjDhRrtxrVbjbBUz64o1ZLsDFudCFIqOiDdNXLH0MZkZAm3Zn1Xj3JQxjZXuo/gokCDugNQ= X-Gm-Message-State: AOJu0YwlCGQr23Lb4tWbzOyUsS1cXPyT2Iw0YT9K1GKMvC7Dk7D3Z8iX wfmhImShU/glySBnK6TsTMHyCwhcU07YmKzcSgBet7log96Ya3sA X-Google-Smtp-Source: AGHT+IFS/Kn/FKJ79Qn/8mdYG6UO2eboY1TknBAAglfS2hZsG70n3NBZ93eixEk+yknxV1asmftEEw== X-Received: by 2002:a17:903:184:b0:1fa:1d7b:c21b with SMTP id d9443c01a7336-1fb33e62216mr45901685ad.31.1720211007347; Fri, 05 Jul 2024 13:23:27 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-1fb29e29876sm42030635ad.304.2024.07.05.13.23.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jul 2024 13:23:26 -0700 (PDT) Content-Language: en-US In-Reply-To: <877cdz7k6g.fsf@posteo.net> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288436 Archived-At: On 7/5/2024 11:44 AM, Thierry Volpiatto wrote: >> My understanding is that this would prompt the user if there were a >> buffer named "*Eshell Async Command Output*" (good), but also if there >> were a buffer named "*Eshell Async Command Output*<2>" (possibly >> unnecessary). > > Why? > > If we remove the cl-loop, we will have only: > > (if (buffer-live-p (get-buffer "*Eshell Async Command Output*")) > (do something according to eshell-command-async-buffer)) > > which will return nil and > > (rename-buffer buf "*Eshell Async Command Output*" nil) > > will run inconditionally without asking anything while the process in > "*Eshell Async Command Output*<2>" is still (maybe) running. > > Did I miss something? If an Eshell command is running in the "...<2>" buffer, then running another Eshell command in "*Eshell Async Command Output*" at the same time should be ok. As such, I don't think it's necessary to prompt the user in this case: the two async commands can happily run side-by-side.