unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs for beginners (copy and paste)
Date: Fri, 12 Apr 2013 15:40:15 -0400	[thread overview]
Message-ID: <barmar-D86CA9.15401512042013@news.eternal-september.org> (raw)
In-Reply-To: 8e85c07f-e123-489d-9575-7de4e6063a86@googlegroups.com

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 ***


  reply	other threads:[~2013-04-12 19:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-12  9:47 emacs for beginners (copy and paste) piconese.as
2013-04-12 19:40 ` Barry Margolin [this message]
2013-04-29 17:43   ` Ken Goldman
2013-04-13  8:31 ` Peter Dyballa
  -- strict thread matches above, loose matches on Subject: below --
2013-04-12 23:28 Buchs, Kevin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-D86CA9.15401512042013@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).