emacs-devel
[Top][All Lists]
Advanced

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

M-g suffixes. Was: Key binding M-g should really be goto-line


From: David Kastrup
Subject: M-g suffixes. Was: Key binding M-g should really be goto-line
Date: Fri, 18 Mar 2005 13:11:42 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Romain Francoise <address@hidden> writes:

> Juri Linkov <address@hidden> writes:
>
>> I see `goto-line' finally bound to M-g in CVS.  Good news!
>> After such a big change, it is time now for a few improvements.

Of course Juri is being facetious.  The binding of M-g was a small
change as compared to the improvements.  If he'd have come up with
them before, maybe the argument would not have taken so long: the
improvements are what makes this really good.

> Now that Richard has changed M-g to be a prefix key, can we
> implement this plan?
>
> We already have:
>
> M-g M-g   - goto-line
> M-g g     - goto-line
>
> The candidates are:
>
> M-g c     - goto-char

Maybe the binding M-g = would be a better complement to C-x =
(what-cursor-position)?

M-g b      - goto-byte (non-existent yet)

If one application is supposed to make use of error offsets from
external applications, it is quite likely that those will be given in
bytes instead of characters for this kind of granularity.  goto-byte
would need to take a look at buffer-file-coding-system in general, as
it would not do to do the accounting in Emacs-internal units.

> M-g n     - next-error (goto-next-locus)
> M-g M-n   - next-error (goto-next-locus)
> M-g p     - previous-error
> M-g M-p   - previous-error

Most definitely YES!

> Undecided:
>
> M-g f     - dired-goto-file? (doesn't work in non-Dired buffers)
> M-g j     - Kim's find-file-and-line-near-point?

M-g . 

> M-g j     - dired-jump? (or a similar function which prompts for a file
>             name)

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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