help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

terminal command with output in current buffer


From: lisa-asket
Subject: terminal command with output in current buffer
Date: Fri, 16 Jul 2021 19:00:13 +0200 (CEST)

Many thanks, I just did not follow what asynchronously meant.



Can one assign default values when `read-from-minibuffer` in empty?


From: Felix Dietrich <felix.dietrich@sperrhaken.name>
To: help-gnu-emacs@gnu.org
Subject: Re: Run terminal command with output in current buffer
Date: 16/07/2021 18:32:00 Europe/Paris

lisa-asket@perso.be writes:

> But when using `shell-command` I have to wait until the command is
> executed before it gets displayed in the buffer. Can I make it print
> as it is executing ?

Reread the docstring of “shell-command”! There you will find:

“If COMMAND ends in ‘&’, execute it asynchronously. The output
appears in the buffer ‘*Async Shell Command*’. That buffer is in
shell mode. You can also use ‘async-shell-command’ that
automatically adds ‘&’.”

-- 
Felix Dietrich




reply via email to

[Prev in Thread] Current Thread [Next in Thread]