From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.help Subject: Re: Go to a Line Date: 27 Mar 2003 11:14:53 -0500 Organization: Yale University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5lvfy49476.fsf@rum.cs.yale.edu> References: <84fzpaw9bc.fsf@lucy.is.informatik.uni-duisburg.de> <5lllz29kry.fsf@rum.cs.yale.edu> <87znnihsgx.fsf@server.crasseux.com> <5l8yv29c66.fsf@rum.cs.yale.edu> <87u1dp1j2c.fsf@juliva.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048782120 31538 80.91.224.249 (27 Mar 2003 16:22:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2003 16:22:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 27 17:21:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ya8B-0008Al-00 for ; Thu, 27 Mar 2003 17:21:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ya7I-00056G-09 for gnu-help-gnu-emacs@m.gmane.org; Thu, 27 Mar 2003 11:20:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.isc.org!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!news.ycc.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: rum.cs.yale.edu User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 27 Mar 2003 11:14:53 -0500, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:111452 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7952 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7952 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