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: emacs for beginners (copy and paste) Date: Fri, 12 Apr 2013 15:40:15 -0400 Organization: A noiseless patient Spider Message-ID: References: <8e85c07f-e123-489d-9575-7de4e6063a86@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1365806005 28042 80.91.229.3 (12 Apr 2013 22:33:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 22:33:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 13 00:33:29 2013 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 1UQmXA-0003pu-PG for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Apr 2013 00:33:28 +0200 Original-Received: from localhost ([::1]:41016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQmXA-0005zJ-D3 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Apr 2013 18:33:28 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!news2.arglkargh.de!news.albasani.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="24075"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pHmd3gsmVhuxFfGyoyHeb" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:0a/PAVXI0AwiFUOBBh32/0O3yRk= Original-Xref: usenet.stanford.edu gnu.emacs.help:197865 X-Mailman-Approved-At: Fri, 12 Apr 2013 18:26:32 -0400 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:90136 Archived-At: In article <8e85c07f-e123-489d-9575-7de4e6063a86@googlegroups.com>, piconese.as@gmail.com wrote: > Hi!!! I'm starting to use EMACS and I'have a problem: > > I want to copy and paste the values of alpha_eff delta_eff gamma_eff. > > The problem is that I want to do this for 75 movements. > > So I want to select and to copy only the values of alpha_eff delta_eff > gamma_eff for each movement and to paste them in a new file. Look into keyboard macros. You record a sequence of keyboard commands, and then tell Emacs to rerun them. You can tell it how many times to run it over and over. In your case, you can use a regexp search to search for \(alpha\|delta\|gamma\)_eff:, set a mark, move over the next word, copy it with M-w, switch to the buffer containing the file you're copying to, paste with C-y, and switch back to the original buffer. > > Can you help me?? > > Thanks > > > --------------- MOUVEMENT M1 ------------- > alpha_ref: 11 alpha_eff: 11 > delta_ref: 04 delta_eff: 04 > gamma_ref: 00 gamma_eff: 00 > > --------------- MOUVEMENT M2 ------------- > alpha_ref: 15 alpha_eff: 15 > delta_ref: 00 delta_eff: 00 > gamma_ref: 01 gamma_eff: 01 > . > . > . > . > --------------- MOUVEMENT M75 ------------- > alpha_ref: 116 alpha_eff: 123 > delta_ref: 04 delta_eff: 04 > gamma_ref: 00 gamma_eff: 00 -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***