Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.editoren > #389 > unrolled thread
| Started by | Andreas Kohlbach <ank@spamfence.net> |
|---|---|
| First post | 2022-08-25 14:06 -0400 |
| Last post | 2022-08-25 19:21 -0400 |
| Articles | 3 — 2 participants |
Back to article view | Back to de.comp.editoren
[Emacs] Ausgabe von Linux-Befehl im selben Buffer Andreas Kohlbach <ank@spamfence.net> - 2022-08-25 14:06 -0400
Re: [Emacs] Ausgabe von Linux-Befehl im selben Buffer Stefan Wiens <s.wi@gmx.net> - 2022-08-25 20:52 +0200
Re: [Emacs] Ausgabe von Linux-Befehl im selben Buffer Andreas Kohlbach <ank@spamfence.net> - 2022-08-25 19:21 -0400
| From | Andreas Kohlbach <ank@spamfence.net> |
|---|---|
| Date | 2022-08-25 14:06 -0400 |
| Subject | [Emacs] Ausgabe von Linux-Befehl im selben Buffer |
| Message-ID | <87czco5hao.fsf@usenet.ankman.de> |
Mit M-! oder M-| (gibt es da einen Unterschied?) kann man einen Linux-Befehl eingeben, dessen Ausgabe in einem neu erzeugten Buffer/Fenster angezeigt wird. Wie kann ich Emacs sagen, dieses im aktuellen Puffer zu tun? -- Andreas
[toc] | [next] | [standalone]
| From | Stefan Wiens <s.wi@gmx.net> |
|---|---|
| Date | 2022-08-25 20:52 +0200 |
| Message-ID | <87zgfsxiz6.fsf@eswe.dd-dns.de> |
| In reply to | #389 |
Andreas Kohlbach <ank@spamfence.net> writes: > Mit M-! oder M-| (gibt es da einen Unterschied?) M-| runs the command shell-command-on-region. Das Kommando erhält also den Inhalt der aktuellen Region als Standardeingabe und ggf. (mit C-u vorher) wird die Region durch die Ausgabe des Kommandos ersetzt. > kann man einen Linux-Befehl eingeben, dessen Ausgabe in einem neu > erzeugten Buffer/Fenster angezeigt wird. Wie kann ich Emacs sagen, > dieses im aktuellen Puffer zu tun? M-! runs the command shell-command (shell-command COMMAND &optional OUTPUT-BUFFER ERROR-BUFFER) ... If OUTPUT-BUFFER is not a buffer and not nil, insert the output in current buffer after point leaving mark after it. Es reicht also C-u M-! und die Ausgabe des Kommandos landet im aktuellen Buffer. -- Stefan
[toc] | [prev] | [next] | [standalone]
| From | Andreas Kohlbach <ank@spamfence.net> |
|---|---|
| Date | 2022-08-25 19:21 -0400 |
| Message-ID | <874jxz6ha4.fsf@usenet.ankman.de> |
| In reply to | #390 |
On Thu, 25 Aug 2022 20:52:08 +0200, Stefan Wiens wrote: > > Andreas Kohlbach <ank@spamfence.net> writes: > >> Mit M-! oder M-| (gibt es da einen Unterschied?) > > M-| runs the command shell-command-on-region. > > Das Kommando erhält also den Inhalt der aktuellen Region > als Standardeingabe und ggf. (mit C-u vorher) wird die Region > durch die Ausgabe des Kommandos ersetzt. > >> kann man einen Linux-Befehl eingeben, dessen Ausgabe in einem neu >> erzeugten Buffer/Fenster angezeigt wird. Wie kann ich Emacs sagen, >> dieses im aktuellen Puffer zu tun? > > M-! runs the command shell-command > > (shell-command COMMAND &optional OUTPUT-BUFFER ERROR-BUFFER) > ... > If OUTPUT-BUFFER is not a buffer and not nil, insert the > output in current buffer after point leaving mark after it. > > > Es reicht also > > C-u M-! > > und die Ausgabe des Kommandos landet > im aktuellen Buffer. Danke Dir für die ausführliche Erklärung. Funktioniert. -- Andreas
[toc] | [prev] | [standalone]
Back to top | Article view | de.comp.editoren
csiph-web