From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: select a section of text and run it into another process?
Date: Tue, 31 Mar 2015 15:10:28 +0300 [thread overview]
Message-ID: <83k2xxtljf.fsf@gnu.org> (raw)
In-Reply-To: <c3ad0973-0926-4449-a7c8-d1076a6c8ec2@googlegroups.com>
> Date: Tue, 31 Mar 2015 04:15:52 -0700 (PDT)
> From: Sayth Renshaw <flebber.crue@gmail.com>
>
> My emacs is going well, but something I would like to be able to do is run a section of code in a file and send it to an eshell process of python/ipython to evaluated.
To send a portion of text to a process (not eshell, but a program that
Emacs will invoke), select the text and then type "M-|". Emacs will
prompt for the command to invoke on this text.
> How do I do this, I am not sure how to select the text without using the mouse, there are a lot of people guessing on this SO question (http://stackoverflow.com/questions/657672/how-to-select-or-highlight-a-block-in-emacs) but can anyone provide a solid answer?
Type "C-SPC" on one edge of the text, then move to the other. That's
all; the text between those two points is now selected.
next prev parent reply other threads:[~2015-03-31 12:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 11:15 select a section of text and run it into another process? Sayth Renshaw
2015-03-31 12:10 ` Eli Zaretskii [this message]
2015-03-31 16:02 ` Barry Margolin
2015-04-01 8:15 ` Sayth Renshaw
2015-04-01 14:30 ` Eli Zaretskii
2015-04-01 8:20 ` Sayth Renshaw
2015-04-01 11:16 ` Sayth Renshaw
2015-04-01 12:08 ` Eric Abrahamsen
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=83k2xxtljf.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.