From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: [Q] In emacs, how to copy a region of the buffer to a string to process ? Urgent Date: Sat, 4 Dec 2010 12:10:57 -0800 (PST) Message-ID: <49427.130.55.132.39.1291493457.squirrel@webmail.lanl.gov> References: Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291493472 13112 80.91.229.12 (4 Dec 2010 20:11:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Dec 2010 20:11:12 +0000 (UTC) Cc: "Emacs Dev \[emacs-devel\]" To: "Fren Zeee" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 04 21:11:08 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1POyRo-0006Zc-3D for ged-emacs-devel@m.gmane.org; Sat, 04 Dec 2010 21:11:08 +0100 Original-Received: from localhost ([127.0.0.1]:45054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POyRn-0008C4-Ga for ged-emacs-devel@m.gmane.org; Sat, 04 Dec 2010 15:11:07 -0500 Original-Received: from [140.186.70.92] (port=52264 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POyRj-0008B5-7M for emacs-devel@gnu.org; Sat, 04 Dec 2010 15:11:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POyRi-0000Pu-3l for emacs-devel@gnu.org; Sat, 04 Dec 2010 15:11:03 -0500 Original-Received: from proofpoint1.lanl.gov ([204.121.3.25]:56672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POyRh-0000PT-Mf for emacs-devel@gnu.org; Sat, 04 Dec 2010 15:11:02 -0500 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by proofpoint1 (8.14.3/8.14.3) with ESMTP id oB4KAvWD013168; Sat, 4 Dec 2010 13:10:57 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id B5D2E1A8C4E2; Sat, 4 Dec 2010 13:10:57 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay2.lanl.gov (Postfix) with ESMTP id A317C1A8C4E1; Sat, 4 Dec 2010 13:10:57 -0700 (MST) Original-Received: by webmail1.lanl.gov (Postfix, from userid 48) id A12871CA8198; Sat, 4 Dec 2010 13:10:57 -0700 (MST) Original-Received: from 130.55.132.39 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Sat, 4 Dec 2010 12:10:57 -0800 (PST) In-Reply-To: User-Agent: SquirrelMail/1.4.8-5.el5_4.10.lanl3 X-Priority: 3 (Normal) Importance: Normal X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15, 1.0.148, 0.0.0000 definitions=2010-12-04_07:2010-12-04, 2010-12-04, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133417 Archived-At: > [Q] In emacs, how to copy a region of the buffer to a string to process ? If you mean "how to send a buffer substring to a subprocess", it's `process-send-region'. If you mean "how to copy a region for further processing", it's `buffer-substring' in Lisp and `kill-ring-save' (M-w) for the user. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.