From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felix Dietrich Newsgroups: gmane.emacs.help Subject: Re: Run terminal command with output in current buffer Date: Fri, 16 Jul 2021 18:32:00 +0200 Message-ID: <87czrip6db.fsf@sperrhaken.name> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7511"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 16 18:33:04 2021 Return-path: Envelope-to: geh-help-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 1m4Qls-0001kn-3w for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Jul 2021 18:33:04 +0200 Original-Received: from localhost ([::1]:43944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4Qlq-0003fj-Uj for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 16 Jul 2021 12:33:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4Ql1-0003dp-6H for help-gnu-emacs@gnu.org; Fri, 16 Jul 2021 12:32:11 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.24]:51511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4Qkz-0006Ti-86 for help-gnu-emacs@gnu.org; Fri, 16 Jul 2021 12:32:10 -0400 Original-Received: from localhost ([77.11.230.244]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MDQqe-1lxFEB2TBO-00AWPw for ; Fri, 16 Jul 2021 18:32:05 +0200 In-Reply-To: (lisa-asket@perso.be's message of "Fri, 16 Jul 2021 17:44:57 +0200 (CEST)") X-Provags-ID: V03:K1:fWYnubHNcfnTSEuE0fvDbcX+ahi1uafv5wHcz6o19cxGdF2CfXr HzUzyOSWEuOt/kDTJZOyoyWuM/JDbluBU3y1r7uoaqiE8WpjTn8Z4XV3k2vUxAL2+g4NK09 2zrsvBQR++CI9y29s6PxC2i7KO3Z1qKk5d+U9VragN8rS79NOfJZyRn3gTYrKEZNxaTQmZl Mdp7MnXFI7TmJ1zKrLYtQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:m4dqpt/Whlw=:FWOa6RpjjHipL6m/ZIyEJq khVRE3VibpsSNGJXQ5PjlfikefgUcywohD+nWMjdV5tkv04G3C5iGixUVVfecxXWaQ7spcNmp D9kCaGOxu/EzPe1yXMSmsG3YRD+5g+dn2a4BXfkcYtTQI0HsofkRasP1cVHHFQLv9OqMIUM+2 sht6OPEV+/oaURnpy6pEVqQ1OPp/QXbckusVhBNBN6UvlPD9xFPG4+0HCXAcKIOmUgEN2xmsP AQBf5ROkD4ReyVs8t78yIwNeEA+LJHOXtJCJftqS6/biEEvwKuWamNpR/+AG4onCsBobz59xi ViMC0BtkytAMaDeo8ow4Sfb2QV56b+U7riJHapCQDTpFdpXhhAwKVlRXunYOQVJTSqHLLKmTT IRoxCRrYxCOk5oAabVJamA77Wpe3V3acQ8HSINdac19BGso9ETNCkCMf3NkppCugVb9SetQvr l/7cL2OYHcFOFKx2Od4ABuzPxOd3iGN4+8DDj45aVc8Z1yF1wg2YAdbgsRx76RNx3KzOy6Bds 0G8Z9nnrXyimW5VuAyv3rjo9PwAm0Dc5a/N6mnxsRnJHzfkt/GZKXeGXFEsyumR6Q1tcdyq+B TExu8hkoO4iKd8D37e9FaFXA8upqXNde0hXR9HUxrnZPCaYSTXdpmqAeGuP+xN97XTrnmv1dc tyu9sYs/d1hcEed3l1dJuuCXnnaJhJ/AlHSqKw1QsJ7q5QVvB+EZxdRbcxRCy4as6GteORewk bF6NtSZDsj8zsmwiYjR3T0xlHZ+c9w/SQCU31293GZMG5yoSmIF0qU/xs8mpHfAI21zje7A2 Received-SPF: none client-ip=212.227.17.24; envelope-from=felix.dietrich@sperrhaken.name; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131761 Archived-At: 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 =E2=80=9Cshell-command=E2=80=9D! There you will fi= nd: =E2=80=9CIf COMMAND ends in =E2=80=98&=E2=80=99, execute it asynchronou= sly. The output appears in the buffer =E2=80=98*Async Shell Command*=E2=80=99. That bu= ffer is in shell mode. You can also use =E2=80=98async-shell-command=E2=80=99 that automatically adds =E2=80=98&=E2=80=99.=E2=80=9D --=20 Felix Dietrich