all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Nicolas Richard'" <theonewiththeevillook@yahoo.fr>,
	<help-gnu-emacs@gnu.org>
Subject: RE: how to get key maps info?
Date: Fri, 25 Jan 2013 08:35:59 -0800	[thread overview]
Message-ID: <9EAD617B0E7B4B0EBAD5A7216D3AF24C@us.oracle.com> (raw)
In-Reply-To: <878v7hzfc5.fsf@yahoo.fr>

> > the C-h k describe a specific key, so that C-h k M-g g 
> > provides me the documentation for goto-line. But what if
> > I want to get all the possible completion for M-g?
> > Is there an help feature for that?
> 
> In most situations, <prefix keys> C-h will do it, so that 
> would be `M-g C-h' in this case.

That is a good answer, but there are some cases where it doesn't
work.  (I don't recall particular cases.  Isearch used to be one,
but that has been corrected.)

Other things that can help in this way:

1. `C-h b' and `C-h m' (which have already been mentioned).

2. `C-h M-k' to see all the bindings for a particular keymap.
Requires library `help-fns+.el'.  E.g., `C-h M-k ctl-x-map'.
This is especially useful for keymaps, such as minibuffer maps,
that you cannot easily examine otherwise.

3. `<prefix key> S-TAB' to complete the key sequence.  Requires
library `icicles.el'.  E.g., `M-g TAB' shows these completions:

..                       c  =  goto-char     ESC  =  ...
g  =  goto-line          M-g  =  goto-line   M-n  =  next-error
M-p  =  previous-error   n  =  next-error    p  =  previous-error
TAB  =  move-to-column

(`..' goes up a level, in this case above prefix key `M-g' to
the top.  `...' indicates here that ESC (i.e., `M-g M-') is
itself a prefix key.) 

This shows you the available keys, but it also lets you invoke
them.  It is the equivalent, for keys, of completing a command
name when you use `M-x'.

During key completion, if you cycle among candidates then the
mode line of window *Completions* shows the first line of what
`C-h k' would show for the current candidate key.  `C-M-RET'
shows the full `C-h k' help for the current candidate key.

Info about #2 and #3:
http://www.emacswiki.org/emacs/HelpPlus
http://www.emacswiki.org/emacs/Icicles_-_Key_Completion





      parent reply	other threads:[~2013-01-25 16:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-25 10:57 how to get key maps info? Luca Ferrari
2013-01-25 11:09 ` Peter Dyballa
2013-01-25 11:12 ` Nicolas Richard
2013-01-25 12:23   ` Luca Ferrari
2013-01-25 16:35   ` Drew Adams [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9EAD617B0E7B4B0EBAD5A7216D3AF24C@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=theonewiththeevillook@yahoo.fr \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.