From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Perldo in Emacs Date: Thu, 3 Mar 2011 10:32:42 +0600 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299126792 17262 80.91.229.12 (3 Mar 2011 04:33:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 04:33:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 03 05:33:08 2011 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Pv0Dr-0007JC-UA for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Mar 2011 05:33:08 +0100 Original-Received: from localhost ([127.0.0.1]:49265 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv0Dr-0000ns-A3 for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 23:33:07 -0500 Original-Received: from [140.186.70.92] (port=45840 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv0DU-0000mL-LO for help-gnu-emacs@gnu.org; Wed, 02 Mar 2011 23:32:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv0DT-0007t4-DP for help-gnu-emacs@gnu.org; Wed, 02 Mar 2011 23:32:44 -0500 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:33422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv0DT-0007sy-9u for help-gnu-emacs@gnu.org; Wed, 02 Mar 2011 23:32:43 -0500 Original-Received: by qwd7 with SMTP id 7so704631qwd.0 for ; Wed, 02 Mar 2011 20:32:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=E3l4D4Mk+hJIaxhwwdjm/nWppD2X5qvgC1ateA2+mAc=; b=sVxQw2zrNu6+PpgdodtiUhXTdy1ZtKmZljWiaMznj+egEgb4CgCn9b0xtFhLvhkfXT INEAvS4wPVGB0nX/r5D3QHDi/ZnnTwK2zihMo2EDAVR+TOOZMBqTGZ1ioGDVbek8EOar kTxPGLUGFfDavsQk48anazGx0zk6B3+RB3OH0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=c659g9vAeYkD2BSBRCl8ltUw366opqZeKQU+9HPoGua+g9W3gy9y+01QXFoxxXvJgX tUNViWjqAE0sXJIRFxXIk2eWM/eFTKy37Mb2YGInQ8bw7I3gYTiRZUP0/Fks5uJMf/Wu kU5YkVIG7vfWRoK9dDKcKx0lpsqrn5r/zIRow= Original-Received: by 10.229.232.3 with SMTP id js3mr521484qcb.182.1299126762362; Wed, 02 Mar 2011 20:32:42 -0800 (PST) Original-Received: by 10.229.182.209 with HTTP; Wed, 2 Mar 2011 20:32:42 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79725 Archived-At: 2011/3/3 Alberto Sim=F5es : > It is a matter of running the buffer with > > =A0perl -i -pe ' ... ' =A0 =A0< buffer > newbuffer > > where ... is the perl code instroduced by the user in emacs > (minibuffer, probably). shell-command-on-region will almost do what you want, you will just need to pass it a newly created buffer for output.