From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Newbie: Interactive goto-line ?! Date: 25 Feb 2004 12:05:22 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <403b2dbe$0$38285$e4fe514c@dreader14.news.xs4all.nl> <874qtgqq9w.fld@barrow.com> <403BBB98.5030506@yahoo.com> <877jycoxo4.fld@barrow.com> <87y8qroejs.fld@barrow.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077703578 5161 80.91.224.253 (25 Feb 2004 10:06:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Feb 2004 10:06:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 25 11:06:04 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AvvvX-00035Z-00 for ; Wed, 25 Feb 2004 11:06:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AvvuJ-0004kW-J0 for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Feb 2004 05:04:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1Avvtv-0004kI-Kn for help-gnu-emacs@gnu.org; Wed, 25 Feb 2004 05:04:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AvvtN-0004hR-Gp for help-gnu-emacs@gnu.org; Wed, 25 Feb 2004 05:04:20 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.30) id 1AvvtN-0004ew-0q for help-gnu-emacs@gnu.org; Wed, 25 Feb 2004 05:03:49 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: <87y8qroejs.fld@barrow.com> (message from Floyd Davidson on Tue, 24 Feb 2004 21:31:51 -0900) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17195 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17195 > Newsgroups: gnu.emacs.help > From: Floyd Davidson > Date: Tue, 24 Feb 2004 21:31:51 -0900 > Xref: shelby.stanford.edu gnu.emacs.help:121236 > Sender: help-gnu-emacs-bounces+eliz=elta.co.il@gnu.org > > > >For example, "M-g M-g" is invaluable as a means to fix bad > >font-lock fontifications (a.k.a. syntax highlighting). > > That is not a default binding for either GNU Emacs or XEmacs, so > I'm not positive which function you have bound to it. Did you try "C-h c M-g M-g"? In my Emacs it says M-g M-g runs the command font-lock-fontify-block AFAICS, this is the default binding of GNU Emacs since Emacs 20.x at least (couldn't check in Emacs 19 where I'm typing this). > Incidentally, with XEmacs the default binding for M-g is the > goto-line function. Yes, we considered this during development of Emacs 20.1 and rejected this binding, since M-g is a prefix of commands that change fonts and text properties like bold, underlined, etc. > >If you find yourself using goto-line too often, you should take a good > >look at the way you use Emacs: most uses of goto-line should be > >unnecessary because Emacs interface with various programs that report > >line numbers, such as compilers, Grep, etc., have commands to > >automatically visit the file and line number being reported. > > If you are not using goto-line you are missing a very quick way > to move around in files. I was serious. If you have serious counter-arguments why goto-line is better then "C-x `" and its ilk, please tell. In a nutshell, the reason why goto-line should not be a frequently used command is that normally there's no reason to want to get to line number N unless you have a program that told you there's something interesting on that line.