From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: Newbie: Interactive goto-line ?!
Date: 25 Feb 2004 12:05:22 +0200 [thread overview]
Message-ID: <uznb7cw4d.fsf@elta.co.il> (raw)
In-Reply-To: <87y8qroejs.fld@barrow.com> (message from Floyd Davidson on Tue, 24 Feb 2004 21:31:51 -0900)
> Newsgroups: gnu.emacs.help
> From: Floyd Davidson <floyd@barrow.com>
> 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.
next prev parent reply other threads:[~2004-02-25 10:05 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-24 10:55 Newbie: Interactive goto-line ?! Karel Kubat
2004-02-24 10:58 ` Maurizio Loreti
2004-02-24 11:42 ` Gian Uberto Lauri
2004-02-24 16:08 ` Brad Collins
2004-02-24 11:00 ` Karel Kubat
2004-02-24 11:34 ` Jiri Pejchal
2004-02-24 22:21 ` Johan Bockgård
2004-02-24 18:35 ` Floyd Davidson
2004-02-24 21:01 ` Kevin Rodgers
2004-02-24 23:38 ` Floyd Davidson
2004-02-25 5:33 ` Eli Zaretskii
[not found] ` <mailman.436.1077687252.340.help-gnu-emacs@gnu.org>
2004-02-25 6:31 ` Floyd Davidson
2004-02-25 8:56 ` Kai Grossjohann
2004-02-25 10:05 ` Eli Zaretskii [this message]
[not found] ` <mailman.452.1077703465.340.help-gnu-emacs@gnu.org>
2004-02-25 16:29 ` Floyd Davidson
2004-02-26 17:32 ` Eli Zaretskii
[not found] ` <mailman.580.1077816762.340.help-gnu-emacs@gnu.org>
2004-02-26 17:50 ` Jesper Harder
2004-02-26 18:22 ` David Kastrup
2004-02-26 20:47 ` Floyd L. Davidson
2004-02-27 9:17 ` Alan Mackenzie
2004-02-27 12:56 ` Eli Zaretskii
2004-02-27 15:17 ` Johan Bockgård
2004-02-27 15:29 ` David Kastrup
2004-02-27 16:04 ` Johan Bockgård
2004-02-29 15:29 ` Kai Grossjohann
2004-03-01 4:07 ` Floyd L. Davidson
2004-03-01 4:47 ` Johan Bockgård
2004-03-01 6:12 ` Floyd L. Davidson
2004-02-27 16:42 ` Stefan Monnier
2004-02-27 16:58 ` David Kastrup
2004-02-27 18:07 ` Stefan Monnier
2004-02-27 18:22 ` David Kastrup
2004-02-27 20:46 ` Stefan Monnier
2004-02-26 19:03 ` Eli Zaretskii
[not found] ` <mailman.586.1077822322.340.help-gnu-emacs@gnu.org>
2004-02-26 19:28 ` David Kastrup
2004-02-26 21:25 ` Kevin Rodgers
2004-02-27 12:59 ` Eli Zaretskii
[not found] ` <mailman.648.1077887747.340.help-gnu-emacs@gnu.org>
2004-02-27 16:47 ` Stefan Monnier
2004-02-27 17:56 ` Eli Zaretskii
2004-02-26 17:36 ` Dan Katz
2004-02-25 17:58 ` Stefan Monnier
2004-02-26 6:04 ` Eli Zaretskii
[not found] ` <mailman.541.1077775437.340.help-gnu-emacs@gnu.org>
2004-02-27 16:31 ` Stefan Monnier
2004-02-27 17:59 ` Eli Zaretskii
2004-02-25 16:47 ` Kevin Rodgers
2004-02-25 17:35 ` Floyd Davidson
2004-02-25 18:01 ` Stefan Monnier
2004-02-26 7:08 ` Kai Grossjohann
2004-02-26 19:38 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uznb7cw4d.fsf@elta.co.il \
--to=eliz@elta.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).