* Re: putting a command and its output in a buffer
2006-03-28 17:45 putting a command and its output in a buffer Gary Weselle
@ 2006-03-28 8:14 ` Peter Dyballa
2006-03-28 18:33 ` Kevin Rodgers
0 siblings, 1 reply; 3+ messages in thread
From: Peter Dyballa @ 2006-03-28 8:14 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 28.03.2006 um 19:45 schrieb Gary Weselle:
> I would like to put a shell command and its output in a buffer,
What about M-x shell-command? Later you'll have to edit *Shell
Command Output* to contain the command ...
Alternatively you can set verbose mode in your shell so that it
repeats the command.
--
Greetings
Pete
IMBECILITY, n. A kind of divine inspiration, or sacred fire affecting
censorious critics of this dictionary.
-- Ambrose Bierce: _The Devil's Dictionary_
^ permalink raw reply [flat|nested] 3+ messages in thread
* putting a command and its output in a buffer
@ 2006-03-28 17:45 Gary Weselle
2006-03-28 8:14 ` Peter Dyballa
0 siblings, 1 reply; 3+ messages in thread
From: Gary Weselle @ 2006-03-28 17:45 UTC (permalink / raw)
Hi
I would like to put a shell command and its output in a buffer,
M-1 ! puts the output of the command only.
Thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: putting a command and its output in a buffer
2006-03-28 8:14 ` Peter Dyballa
@ 2006-03-28 18:33 ` Kevin Rodgers
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2006-03-28 18:33 UTC (permalink / raw)
Peter Dyballa wrote:
> Am 28.03.2006 um 19:45 schrieb Gary Weselle:
>> I would like to put a shell command and its output in a buffer,
>
> What about M-x shell-command? Later you'll have to edit *Shell Command
> Output* to contain the command ...
>
> Alternatively you can set verbose mode in your shell so that it repeats
> the command.
Brilliant!
(defadvice shell-command (before xtrace activate)
"When called with a prefix argument, prepend \"set -x\" to COMMAND."
(when (and (interactive-p) current-prefix-arg)
(setq command (concat "set -x\n" command))))
Too bad "set -x" is included in shell-command-history.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-28 18:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-28 17:45 putting a command and its output in a buffer Gary Weselle
2006-03-28 8:14 ` Peter Dyballa
2006-03-28 18:33 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.