[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inserting output of shell-command (was: Major usability issue)
From: |
Lute Kamstra |
Subject: |
Re: inserting output of shell-command (was: Major usability issue) |
Date: |
02 Sep 2002 22:33:00 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
lawrence mitchell <wence@gmx.li> writes:
> Bruce Korb wrote:
>
> > For years I have captured the output of a shell command and inserted
> > it into my document. The latest distributions of Linux now carry a
> > version of emacs that makes doing that non-obvious. I'm sure it is
> > doable, but it is really important to just be able to ALT-| then
> > type a command and be able to use a mouse click to capture the text.
> > I haven't read emacs lisp macros yet in order to reverse-engineer
> > what has been done; but I shouldn't have to either. :-(
>
> /----[ C-h k M-! ]
> | M-! runs the command shell-command
> | which is an interactive compiled Lisp function in `simple'.
> | (shell-command COMMAND &optional OUTPUT-BUFFER ERROR-BUFFER)
> |
> | Execute string COMMAND in inferior shell; display output, if any.
> | With prefix argument, insert the COMMAND's output at point.
> | [...]
> \----
>
> So you probably want to be typing something like C-1 M-! at the
> correct point in your buffer.
Oops, typo. Make that: C-u M-!
Lute.
--
(spook) => "genetic Crypto AG White Water"
(insert-file-contents "~/.signature") => (error "`~/.signature' too rude")