[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Run terminal command with output in current buffer
From: |
lisa-asket |
Subject: |
Run terminal command with output in current buffer |
Date: |
Fri, 16 Jul 2021 13:48:25 +0200 (CEST) |
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Run terminal command with output in current buffer
Date: 16/07/2021 13:32:40 Europe/Paris
> From: lisa-asket@perso.be
> Date: Fri, 16 Jul 2021 11:04:02 +0200 (CEST)
>
> It guided we to this command. I wonder how to call the command from my init
> file, have my own
> function for it.
>
> (shell-command COMMAND &optional OUTPUT-BUFFER ERROR-BUFFER)
>
> What shall I do with output-buffer ?
Did you read the doc string? It answers your question quite
explicitly.
I can go without it, but I have put (current-buffer).
- Run terminal command with output in current buffer, lisa-asket, 2021/07/16
- Re: Run terminal command with output in current buffer, Jean-Christophe Helary, 2021/07/16
- Re: Run terminal command with output in current buffer, Eli Zaretskii, 2021/07/16
- Run terminal command with output in current buffer, lisa-asket, 2021/07/16
- Run terminal command with output in current buffer, lisa-asket, 2021/07/16
- Re: Run terminal command with output in current buffer, Felix Dietrich, 2021/07/16
- Re: Run terminal command with output in current buffer, Stefan Monnier, 2021/07/16
- Run terminal command with output in current buffer, lisa-asket, 2021/07/16
- Re: Run terminal command with output in current buffer, Felix Dietrich, 2021/07/16
- terminal command with output in current buffer, lisa-asket, 2021/07/16
- Re: terminal command with output in current buffer, Felix Dietrich, 2021/07/16
- terminal command with output in current buffer, lisa-asket, 2021/07/16
- Re: terminal command with output in current buffer, Felix Dietrich, 2021/07/16