From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nafiz Islam Newsgroups: gmane.emacs.bugs Subject: bug#67972: Use *command (&)* instead of shell-command-buffer-name(-async) Date: Fri, 22 Dec 2023 14:39:55 -0500 Message-ID: References: <83a5q2f3ls.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000202fdb060d1e6251" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20701"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67972@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 23 06:43:31 2023 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 1rGunL-0005Fi-18 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Dec 2023 06:43:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGums-0005f2-5j; Sat, 23 Dec 2023 00:43:02 -0500 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 1rGump-0005XC-Tv for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 00:43:00 -0500 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 1rGump-00087r-Lq for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 00:42:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGumu-0005Bz-KQ for bug-gnu-emacs@gnu.org; Sat, 23 Dec 2023 00:43:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nafiz Islam Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Dec 2023 05:43:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67972 X-GNU-PR-Package: emacs Original-Received: via spool by 67972-submit@debbugs.gnu.org id=B67972.170331016119868 (code B ref 67972); Sat, 23 Dec 2023 05:43:04 +0000 Original-Received: (at 67972) by debbugs.gnu.org; 23 Dec 2023 05:42:41 +0000 Original-Received: from localhost ([127.0.0.1]:48324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGumU-0005AK-S9 for submit@debbugs.gnu.org; Sat, 23 Dec 2023 00:42:41 -0500 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:59742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGlNZ-0002Hy-Kc for 67972@debbugs.gnu.org; Fri, 22 Dec 2023 14:40:18 -0500 Original-Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-40c2bb872e2so21964395e9.3 for <67972@debbugs.gnu.org>; Fri, 22 Dec 2023 11:40:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703274007; x=1703878807; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0t6jQN7nX/bTjtQhk7MeBuXoZLEpHVj4MUFxvxQHmE0=; b=CLAfoylYX5WdwoAZevXm470it4BYBWvBPIBIapn3BWNAUh0rZ+f/H/FP9qCbGhmQa7 8mT+8f8G6ENmlbFm2HETB0ojPc7HeHrI7IMJo/hbJJptFuy7UjY7eqpSEnBnerFUpGRe X//Ok+f+7QpZmbhD+276MHJDkkPEPpgK/gZVvPCyblBMmhkZG3+e3oBRREpzwWa4yqOK u8vWYKH6LsT0WjuY55yZ90/8uHlMklVTKMYBvQGl5E73qt8fFkFHFkOZep4/Y3t6ruAq kQsas0hF+Xaepv+acEQGI+pyOmKFzqJOhF0OPJIR2NONqq+wyLlAbDcwaxC0xK+3EYYP PwrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703274007; x=1703878807; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0t6jQN7nX/bTjtQhk7MeBuXoZLEpHVj4MUFxvxQHmE0=; b=qcpFI/VheqbTllGI2ovPiExSOdbGFjJIW0MybvEb6aHugZSMz7CiTKZLek10vLMUt2 TeZrCVNYcAwutbPRfoGBraZSn/m5VkxnRD8507HtsRh6/U7EtWHklYngKQ7nHXFGf9PZ GxBqS2j35CpL+3F4H/yrBmMxkWTg28vxqAoz4TEHADlKgMiumzA3J7TMvgHlxasJcIxH 0p3InQ2MxvPS58jJ1f4mkbqIX7BqqGhgcujF7l0QAROwdbERKjhG4t98uUkq6Q5RlIGb jp0qs1PcPMiQPE+RYJgUZsmjsc6wGEhsB/AqRaF34CK3PQHnK46Wf+H/flFQaSVvtF6K crrg== X-Gm-Message-State: AOJu0Yywr2gbGwQj+aLCj2unp0BPiLDYwNZXYRQDNefZF4i1/YUKn5VW BT8eU2cIHj+HsWfN/gBDbrJMjBYePDr2/xxx8rKaspm7t+c= X-Google-Smtp-Source: AGHT+IGrIRFzndO8W6nSZqxR9aYKvYFVIBXhWSspnDrpvSOzsqAqRCGkNDQitJI6qCl9f1w+8hO1jHsTmvArv5o1BV4= X-Received: by 2002:a05:600c:4aaa:b0:40d:4908:f5a0 with SMTP id b42-20020a05600c4aaa00b0040d4908f5a0mr312181wmp.184.1703274006719; Fri, 22 Dec 2023 11:40:06 -0800 (PST) In-Reply-To: <83a5q2f3ls.fsf@gnu.org> X-Mailman-Approved-At: Sat, 23 Dec 2023 00:42:37 -0500 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:276701 Archived-At: --000000000000202fdb060d1e6251 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That is a good idea. They could take a string or a symbol with a default string value. The variables shell-command-buffer-name(-async) could be declared as defcustom instead of defconst. On Fri, Dec 22, 2023 at 2:18=E2=80=AFPM Eli Zaretskii wrote: > > From: Nafiz Islam > > Date: Fri, 22 Dec 2023 12:31:24 -0500 > > > > The buffer name for the shell-command or async-shell-command would be > much more useful if they > > were given the name of the command being executed. > > > > I started working a bit on a patch for that, but it's just code changes > right now. Here's a preview of > > what I mean. > > Instead of removing the default name, why not add one more possible > value to async-shell-command-buffer, which will do what you want? > Then users who are interested in this behavior could customize > async-shell-command-buffer to that new value. > > Thanks. > --000000000000202fdb060d1e6251 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That is a good idea. They could take a string or a sy= mbol with a default string value.
The variables shell-command-buf= fer-name(-async) could be declared as defcustom instead of defconst.

On Fri, Dec 22, 2023 at 2:18=E2=80=AFPM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Nafiz Islam <nafiz.islam1001@gmail.com&= gt;
> Date: Fri, 22 Dec 2023 12:31:24 -0500
>
> The buffer name for the shell-command or async-shell-command would be = much more useful if they
> were given the name of the command being executed.
>
> I started working a bit on a patch for that, but it's just code ch= anges right now. Here's a preview of
> what I mean.

Instead of removing the default name, why not add one more possible
value to async-shell-command-buffer, which will do what you want?
Then users who are interested in this behavior could customize
async-shell-command-buffer to that new value.

Thanks.
--000000000000202fdb060d1e6251--