[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

inserting output of shell-command (was: Major usability issue)

From: lawrence mitchell
Subject: inserting output of shell-command (was: Major usability issue)
Date: Mon, 02 Sep 2002 21:04:19 +0100
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.90 (i386-mingw-windows98.2222)

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.

lawrence mitchell <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]