[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to increase a number under cursor?
From: |
David Kastrup |
Subject: |
Re: How to increase a number under cursor? |
Date: |
20 May 2003 16:17:40 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Oliver Scholz <alkibiades@gmx.de> writes:
> Wang Yin <wang-y01@mails.tsinghua.edu.cn> writes:
>
> > I want to record a macro to type flexible numbered lists.
> > for example:
>
> Are you talking about a keyboard macro?
>
> [...]
> > The only problem I meet is how to increase the number under
> > the cursor?
>
> It is not clear to me what you want here. Do you simply want a
> function that deletes the number at point and inserts number + X
> into the buffer again? What do you want to achieve?
Well, with a development Emacs we have the silly answer: type
M-# e 1 + q
Which will incidentally also increment -3/8 to 5:8, and simplify
polynomial expressions and stuff.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum