all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: putting a command and its output in a buffer
Date: Tue, 28 Mar 2006 11:33:35 -0700	[thread overview]
Message-ID: <e0bvj9$hdd$1@sea.gmane.org> (raw)
In-Reply-To: <648C28EC-D455-4325-BB19-AE08C47E087F@Web.DE>

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

      reply	other threads:[~2006-03-28 18:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='e0bvj9$hdd$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.