unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: lawrence mitchell <wence@gmx.li>
Subject: inserting output of shell-command (was: Major usability issue)
Date: Mon, 02 Sep 2002 21:04:19 +0100	[thread overview]
Message-ID: <wkbs7gdupo.fsf@ID-97657.usr.dfncis.de> (raw)
In-Reply-To: mailman.1030996683.19870.help-gnu-emacs@gnu.org

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 <wence@gmx.li>

       reply	other threads:[~2002-09-02 20:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1030996683.19870.help-gnu-emacs@gnu.org>
2002-09-02 20:04 ` lawrence mitchell [this message]
2002-09-02 20:33   ` inserting output of shell-command (was: Major usability issue) Lute Kamstra
2002-09-03 10:22 ` Major usability issue Kai Großjohann
2002-09-03 20:52   ` Bruce Korb
     [not found]   ` <mailman.1031086444.5149.help-gnu-emacs@gnu.org>
2002-09-03 21:12     ` Barry Margolin
2002-09-03 22:46       ` Bruce Korb
2002-09-04  1:58       ` Miles Bader
2002-09-03 22:11     ` Kai Großjohann
2002-09-03 13:36 ` Peter Boettcher

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=wkbs7gdupo.fsf@ID-97657.usr.dfncis.de \
    --to=wence@gmx.li \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).