unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Howard <christopher@librehacker.com>
To: Thierry Volpiatto <thievol@posteo.net>
Cc: Jim Porter <jporterbugs@gmail.com>, Eli Zaretskii <eliz@gnu.org>,
	71554@debbugs.gnu.org
Subject: bug#71554: 29.3; eshell-command async buffer behavior
Date: Sat, 06 Jul 2024 07:13:45 -0800	[thread overview]
Message-ID: <87le2eimdy.fsf@librehacker.com> (raw)
In-Reply-To: Thierry Volpiatto's message of "Sat, 06 Jul 2024 06:10:42 +0000 (7 hours, 57 minutes, 5 seconds ago)"

Regarding my workflow, I'm generally using eshell-command for one of three things:

(1) To launch some long running external application, like a torified gemini browser. Always done with "&".
(2) To run some one-off command or pipeline of commands, like capturing the listing of a directory, manipulating some files, or grepping the output of a file and saving that to a buffer. Sometimes I use "&" depending on how quick I think it will be to finish.
(3) Something like the above, but the eshell-command call is inserted as elisp in some interactive function, when it is more convenient than start/call-process for some reason.

Regarding automatically reusing buffers... I lean a little towards not automatically reusing dead buffers, so that I know for sure that some eshell-command call in some other random command I've made doesn't overwrite command output while I am looking at it. My main concern here though is that I might end the work day with 39 dead eshell-command buffers, and not have a convenient way to clear them all out. Off hand, I'm not sure of what command to run which would delete all dead eshell-command buffers but not the live ones.

Regarding use case 3, I just want to mention for sure it would nice, however you set this up, so that I can call eshell-command from lisp, and not have to worry about user (me) being prompted about what to do with buffers. Then I could include eshell-command in timer code or such like and not have to worry about a prompt appearing unexpectedly in my work flow.

-- 
christopher Howard





  parent reply	other threads:[~2024-07-06 15:13 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87le2eimdy.fsf@librehacker.com \
    --to=christopher@librehacker.com \
    --cc=71554@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=jporterbugs@gmail.com \
    --cc=thievol@posteo.net \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).