help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: function to increase numbers in a buffer


From: Stefan Reichör
Subject: Re: function to increase numbers in a buffer
Date: Wed, 23 Apr 2003 14:01:40 +0200
User-agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3.50 (windows-nt)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]