[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2
From: |
Drew Adams |
Subject: |
RE: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2 |
Date: |
Fri, 4 Mar 2005 16:49:13 -0800 |
> How about making goto-line suggest the number at point
> as its default argument?
That seems very convenient!
I haven't yet received RMS's email, but yes, why not?
I think it may also be convenient if, point is not on a number, use
the first number on the current line as a default.
This is because I think it's common to have point sitting at the
beginning of an error line, and this would save users the effort of
manually positioning point over the actual line number (the heuristic
could fail in some cases if for instance a filename contained digits,
but I think it would often be right).
BTW, also maybe the prompt in the "use last selected buffer" case
should mention the buffer name.
FYI - I don't suggest that `goto-line' itself should be changed this way,
but the code I sent for `goto-line-at-point' (which picks up a number in a
buffer to use as goto-line line number in another buffer), in my version,
uses `number-nearest-point' instead of `number-at-point'. That does what you
suggest wrt a number at line start. `number-nearest-point' is defined here:
http://www.emacswiki.org/elisp/thingatpt-plus.el.
- Re: Key binding M-g should really be goto-line, (continued)
- Re: Key binding M-g should really be goto-line, Kim F. Storm, 2005/03/02
- Re: Key binding M-g should really be goto-line autolearn=no version=3.0.2 autolearn=no version=3.0.2, Alfred M. Szmidt, 2005/03/02
- Re: Key binding M-g should really be goto-line autolearn=no version=3.0.2 autolearn=no version=3.0.2 autolearn=no version=3.0.2, Jari Aalto, 2005/03/02
- RE: Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2, Drew Adams, 2005/03/02
- Re: Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2, Andreas Schwab, 2005/03/03
- RE: Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2, Drew Adams, 2005/03/03
- Re: Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2, Kevin Rodgers, 2005/03/03
- RE: Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2, Drew Adams, 2005/03/03
- Re: Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2, Richard Stallman, 2005/03/04
- Re: Key binding M-g should really be goto-line autolearn=noversion=3.0.2 autolearn=no version=3.0.2, Miles Bader, 2005/03/04
- RE: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2,
Drew Adams <=
- Re: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2, Miles Bader, 2005/03/04
- RE: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2, Drew Adams, 2005/03/04
- Re: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2, Miles Bader, 2005/03/04
- Re: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2, Luc Teirlinck, 2005/03/04
- Re: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2, Reiner Steib, 2005/03/05
- Re: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2, Stefan Monnier, 2005/03/05
- Re: Key binding M-g should really be goto-lineautolearn=noversion=3.0.2 autolearn=no version=3.0.2, Miles Bader, 2005/03/05
- Re: Key binding M-g should really be goto-line, Johan Bockgård, 2005/03/05
- Re: Key binding M-g should really be goto-line, Miles Bader, 2005/03/05
- Re: Key binding M-g should really be goto-line, David Kastrup, 2005/03/06