all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@gnu.org>, "'Dani Moncayo'" <dmoncayo@gmail.com>
Cc: 7014@debbugs.gnu.org
Subject: bug#7014: 23.2; `C-h c' command doesn't show the info when invoked from the minibuffer
Date: Fri, 7 Sep 2012 07:02:27 -0700	[thread overview]
Message-ID: <D9A4659EEAC5404EB30FEAC96B9C43E9@us.oracle.com> (raw)
In-Reply-To: <877gs6e8a0.fsf@gnu.org>

> > Try the following:
> > 1.- Start emacs (anyhow).
> > 2.- Type `C-x C-f'.
> > 3.- Now, from the minibuffer, type `C-h c' --> Here, Emacs 
> prompts me
> > for a key to describe. OK.
> > 4.- Type `C-n' (for example). --> Now Emacs should show me the
> > description of the `C-n' key (*), but that doesn't happens. Instead,
> > after a couple of seconds, the minibuffer comes back with the prompt
> > of the `find-file' command.
> 
> Fixed in trunk.

I have not seen the fix yet, but I certainly hope that the currently active
keymaps are used for this.

In particular, with the example given, the doc for `C-n' should list the command
it is bound to as being `exit-minibuffer', since the question about its binding
is being asked with a minibuffer keymap current, and that is the binding of
`C-n' in the minibuffer.

This is important.  Emacs should always faithfully answer questions about itself
and its current state.  When in the minibuffer, users should be able to ask and
get answers to questions about the current, minibuffer, state.

If for some reason some particular context/code needs to instead interrogate the
keymaps that were current before the initial command (`C-x C-f in this case), it
can do that (explicitly).

But a simple `C-h c' when the minibuffer is active should (must) DTRT and give
the currently active binding.  Anything else would be counter the Emacs
philosophy of dynamic introspection.  Emacs is not only self-documenting editor,
it documents itself in real-time.  And nothing about Emacs is more important
than that.






  reply	other threads:[~2012-09-07 14:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-11 19:22 bug#7014: 23.2; `C-h c' command doesn't show the info when invoked from the minibuffer Dani Moncayo
2011-07-13  1:50 ` Glenn Morris
2011-07-13  6:30   ` Dani Moncayo
2011-07-13  7:14     ` Eli Zaretskii
2012-09-07  5:01 ` Chong Yidong
2012-09-07 14:02   ` Drew Adams [this message]
2012-09-07 19:49     ` Dani Moncayo
2012-09-07 20:13       ` Drew Adams

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=D9A4659EEAC5404EB30FEAC96B9C43E9@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=7014@debbugs.gnu.org \
    --cc=cyd@gnu.org \
    --cc=dmoncayo@gmail.com \
    /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.