[Top][All Lists]

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

Re: select a section of text and run it into another process?

From: Barry Margolin
Subject: Re: select a section of text and run it into another process?
Date: Tue, 31 Mar 2015 12:02:07 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <>,
 Sayth Renshaw <> wrote:

> 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.
> 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 
> (
> in-emacs) but can anyone provide a solid answer? 

That question is confusing because the question wasn't very clear that 
it was talking about rectangular regions, not ordinary regions. Some of 
the answers recognized this, some didn't.

The built-in Emacs tutorial explains how to mark a region, although it 
doesn't really go into detail or use that term, it just describes the 
process as part of the method of killing the region:

You can also kill any part of the text with one uniform method.  Move
to one end of that part, and type C-@ or C-<SPC> (either one).  (<SPC>
is the Space bar.)  Move to the other end of that part, and type C-w.
That kills all the text between the two positions.

Barry Margolin,
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

reply via email to

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