From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: select a section of text and run it into another process? Date: Tue, 31 Mar 2015 12:02:07 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427817938 23929 80.91.229.3 (31 Mar 2015 16:05:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 Mar 2015 16:05:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 31 18:05:37 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YcyfH-0008Uf-VI for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 18:05:20 +0200 Original-Received: from localhost ([::1]:39509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcyfH-0006Cp-9O for geh-help-gnu-emacs@m.gmane.org; Tue, 31 Mar 2015 12:05:19 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="7361"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dVuRB+y+eD7LFJHz34dDw" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:4VFA4vH53ZJW9w1toSuEjckrd8I= Original-Xref: usenet.stanford.edu gnu.emacs.help:211186 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103468 Archived-At: 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 > (http://stackoverflow.com/questions/657672/how-to-select-or-highlight-a-block- > 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- (either one). ( 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, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***