Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.editoren > #391
| From | Andreas Kohlbach <ank@spamfence.net> |
|---|---|
| Newsgroups | de.comp.editoren |
| Subject | Re: [Emacs] Ausgabe von Linux-Befehl im selben Buffer |
| Date | 2022-08-25 19:21 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <874jxz6ha4.fsf@usenet.ankman.de> (permalink) |
| References | <87czco5hao.fsf@usenet.ankman.de> <87zgfsxiz6.fsf@eswe.dd-dns.de> |
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
Back to de.comp.editoren | Previous | Next — Previous in thread | Find similar | Unroll thread
[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
csiph-web