From: "Stefan Reichör" <xsteve@riic.at>
Subject: Re: function to increase numbers in a buffer
Date: Wed, 23 Apr 2003 14:01:40 +0200 [thread overview]
Message-ID: <ubryx1kyj.fsf@riic.at> (raw)
In-Reply-To: b84gt0$ctd$1@news.service.uci.edu
On Tue, 22 Apr 2003, Jordi Burguet Castell uttered the following:
> Hello,
>
> I am trying to write a function that would work like
> query-replace-regexp, but instead of replacing each match with a
> fixed string, I want the matched numbers to be increased by 3.
>
> Or, easier, I have a file that looks like this:
>
> 20 1 23523
> 20 2 23874
> 20 3 23898
> ...
>
Use cua-mode:
Hit Shift-Enter
Mark the numbers with the cursor keys
Type: M-3 M-i ... Increment the marked numbers by 3
Stefan.
prev parent reply other threads:[~2003-04-23 12:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-22 13:50 function to increase numbers in a buffer Jordi Burguet Castell
2003-04-23 6:04 ` Harry Putnam
2003-04-23 6:50 ` Joakim Hove
2003-04-23 12:01 ` Stefan Reichör [this message]
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=ubryx1kyj.fsf@riic.at \
--to=xsteve@riic.at \
/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).