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

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

Re: Go to a Line


From: Stefan Monnier
Subject: Re: Go to a Line
Date: 27 Mar 2003 11:14:53 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Stefan> Nah: I hacked isearch to do the goto-line thingy instead
> That is _really_ interesting. Does it scroll incrementally to the line
> as you type the number?

Of course ;-)

> How do you search for numbers in a file?

The usual way: `123' matches both the string `123' and the line 123.
The only time when it's inconvenient is when you're looking for line 123 and
the buffer contains heaps of matches for the string `123'.

Also, there's the problem that you might need to hit C-s one extra
time to force isearch to wrap around (or you could have used C-r instead,
but the point is that the relative position of the starting point and the
destination line is relevant).

> Do you mind showing us the function you are using :)

It's a bunch of patches to isearch.el.  I'll see if I can extract the
relevant portions.


        Stefan


reply via email to

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