all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barry.margolin@level3.com>
Subject: Re: Running Perl Scripts in Emacs (on buffer)
Date: Wed, 08 Oct 2003 15:44:55 GMT	[thread overview]
Message-ID: <XhWgb.238$pd.218@news.level3.com> (raw)
In-Reply-To: de3ad953.0310072059.7cc70e5d@posting.google.com

In article <de3ad953.0310072059.7cc70e5d@posting.google.com>,
Artist <googleartist@yahoo.com> wrote:
>Kai Grossjohann <kai.grossjohann@gmx.net> wrote in message
>news:<86ad8mx6wo.fsf@slowfox.dyndns.org>...
>> Dan Anderson <dan@mathjunkies.com> writes:
>> 
>> > No.  Without going into a shell and saving (or trying to convert my Perl
>> > scripts into elisp) I want to just run an arbitrary perl script on a
>> > buffer.
>> 
>> C-x h M-| foo.pl RET
>> 
>> Does this help?
>
>How do you supply the buffer data to your perl program in this case?
>What would be the arguments?

The buffer data will be piped to the script's standard input.  M-| prompts
for a command line to execute, so you type the arguments in that prompt.

>
>Let's say I have a file and I like to replace some words via perl
>program, how I would do that?

C-x h M-| scriptname oldword newword

-- 
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

  reply	other threads:[~2003-10-08 15:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.322.1063746910.21628.help-gnu-emacs@gnu.org>
2003-09-16 23:12 ` Running Perl Scripts in Emacs (on buffer) Kevin Rodgers
2003-09-17  0:10   ` Dan Anderson
     [not found]   ` <mailman.334.1063757444.21628.help-gnu-emacs@gnu.org>
2003-09-30 22:12     ` Kai Grossjohann
2003-10-08  4:59       ` Artist
2003-10-08 15:44         ` Barry Margolin [this message]
2003-09-16 21:14 Dan Anderson

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='XhWgb.238$pd.218@news.level3.com' \
    --to=barry.margolin@level3.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.