all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thievol@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Thierry Volpiatto <thievol@posteo.net>,
	christopher@librehacker.com, 71554@debbugs.gnu.org
Subject: bug#71554: 29.3; eshell-command async buffer behavior
Date: Fri, 14 Jun 2024 20:32:31 +0000	[thread overview]
Message-ID: <87ed8z8duo.fsf@posteo.net> (raw)
In-Reply-To: <86tthvwdxp.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Jun 2024 21:56:50 +0300")

[-- Attachment #1: Type: text/plain, Size: 1799 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> Cc: 71554@debbugs.gnu.org
>> From: Thierry Volpiatto <thievol@posteo.net>
>> Date: Fri, 14 Jun 2024 18:53:07 +0000
>> 
>> Christopher Howard <christopher@librehacker.com> writes:
>> 
>> > Hello, I run a lot of async commands a lot with eshell-command,
>> > preferring it over shell-command. However, there is a difference
>> > between shell-command and eshell-command behavior which is a little
>> > bothersome and does not make sense to me. If I run an async command
>> > with shell-command, e.g. `sleep 60 &', and then run another one while
>> > the first one is still running, shell-command will ask me if I want to
>> > create a new buffer for the output, and I usually do. However, if I do
>> > the same thing with eshell-command, eshell command will give me only
>> > two options, either (1) kill the currently running command, or (2)
>> > don't create an output buffer, which also throws an error. I was
>> > wondering if it would be possible to add the "create a new buffer"
>> > option to eshell-command as well, for the upcoming 30 release.
>> 
>> Please do not add a "ask to create a new buffer" option to fix this
>> issue, just do not ask and create a new buffer
>
> What if the user is not aware that a command is already running?

The user can easily see there is already a buffer with a process running.
Eshell doesn't kill its async buffers.

> More generally, why being consistent with what shell-command does is
> not a good idea?

Because IMO what shell-command is doing is annoying, no need to duplicate
this annoyance, after all when running such a command in a terminal
already running a detached process, nothing is asked, so why doing this
in emacs?
Or at least make it optional?

-- 
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 686 bytes --]

  reply	other threads:[~2024-06-14 20:32 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-14 13:57 bug#71554: 29.3; eshell-command async buffer behavior Christopher Howard
2024-06-14 18:53 ` Thierry Volpiatto
2024-06-14 18:56   ` Eli Zaretskii
2024-06-14 20:32     ` Thierry Volpiatto [this message]
2024-06-14 22:49       ` Jim Porter
2024-06-15  5:13         ` Thierry Volpiatto
2024-06-20  7:30           ` Thierry Volpiatto
2024-06-24  5:36             ` Jim Porter
2024-06-24  6:23               ` Thierry Volpiatto
2024-06-24 12:33               ` Eli Zaretskii
2024-07-05  4:09                 ` Thierry Volpiatto
2024-07-05  5:46                   ` Eli Zaretskii
2024-07-05  6:24                     ` Thierry Volpiatto
2024-07-05 11:11                       ` Eli Zaretskii
2024-07-05 12:21                         ` Thierry Volpiatto
2024-07-05 14:34                           ` Thierry Volpiatto
2024-07-05 17:41                             ` Jim Porter
2024-07-05 18:44                               ` Thierry Volpiatto
2024-07-05 20:23                                 ` Jim Porter
2024-07-06  2:48                                   ` Jim Porter
2024-07-06  3:34                                     ` Thierry Volpiatto
2024-07-06  4:12                                     ` Thierry Volpiatto
2024-07-06  5:28                                       ` Jim Porter
2024-07-06  6:10                                         ` Thierry Volpiatto
2024-06-24 14:15 ` Christopher Howard
2024-07-06 15:13 ` Christopher Howard
2024-07-06 17:06   ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ed8z8duo.fsf@posteo.net \
    --to=thievol@posteo.net \
    --cc=71554@debbugs.gnu.org \
    --cc=christopher@librehacker.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.