Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.editoren > #390
| From | Stefan Wiens <s.wi@gmx.net> |
|---|---|
| Newsgroups | de.comp.editoren |
| Subject | Re: [Emacs] Ausgabe von Linux-Befehl im selben Buffer |
| Date | 2022-08-25 20:52 +0200 |
| Organization | none |
| Message-ID | <87zgfsxiz6.fsf@eswe.dd-dns.de> (permalink) |
| References | <87czco5hao.fsf@usenet.ankman.de> |
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
Back to de.comp.editoren | Previous | Next — Previous in thread | Next 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