unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* C-h k does not work with M-o
@ 2007-05-28 20:14 Robert J. Chassell
  2007-05-28 20:20 ` Drew Adams
  2007-05-28 20:31 ` Andreas Schwab
  0 siblings, 2 replies; 8+ messages in thread
From: Robert J. Chassell @ 2007-05-28 20:14 UTC (permalink / raw)
  To: emacs-devel

M-o (`facemenu-keymap') fails when called with describe-key (`C-h k')

When I do

    C-h k M-o

I see a line beginning with

    Set face:

Today's GNU Emacs CVS snapshot,  Mon, 2007 May 28  9:58 UTC
GNU Emacs 22.1.50.16 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
started with

     ${srcdir}/src/emacs -Q -D
  where srcdir=/usr/local/src/emacs
  in my case, the command was      /usr/local/src/emacs/src/emacs -Q -D

--
    Robert J. Chassell                          GnuPG Key ID: 004B4AC8
    bob@rattlesnake.com                         bob@gnu.org
    http://www.rattlesnake.com                  http://www.teak.cc

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: C-h k does not work with M-o
  2007-05-28 20:14 C-h k does not work with M-o Robert J. Chassell
@ 2007-05-28 20:20 ` Drew Adams
  2007-05-28 21:59   ` Robert J. Chassell
  2007-06-02 15:44   ` Kevin Rodgers
  2007-05-28 20:31 ` Andreas Schwab
  1 sibling, 2 replies; 8+ messages in thread
From: Drew Adams @ 2007-05-28 20:20 UTC (permalink / raw)
  To: emacs-devel

> When I do C-h k M-o I see a line beginning with Set face:

M-o is a prefix key. If you type another character, say `b', then you should
get help for the key sequence, say `M-o b'.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-h k does not work with M-o
  2007-05-28 20:14 C-h k does not work with M-o Robert J. Chassell
  2007-05-28 20:20 ` Drew Adams
@ 2007-05-28 20:31 ` Andreas Schwab
  1 sibling, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2007-05-28 20:31 UTC (permalink / raw)
  To: bob; +Cc: emacs-devel

"Robert J. Chassell" <bob@rattlesnake.com> writes:

> M-o (`facemenu-keymap') fails when called with describe-key (`C-h k')
>
> When I do
>
>     C-h k M-o
>
> I see a line beginning with
>
>     Set face:

That's not a bug.  Since M-o is a prefix key, you need to type another
key to complete it.  read-key-sequence does not return until it had read
a complete keys.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-h k does not work with M-o
  2007-05-28 20:20 ` Drew Adams
@ 2007-05-28 21:59   ` Robert J. Chassell
  2007-05-28 22:07     ` Drew Adams
  2007-05-29 21:03     ` Michael Schierl
  2007-06-02 15:44   ` Kevin Rodgers
  1 sibling, 2 replies; 8+ messages in thread
From: Robert J. Chassell @ 2007-05-28 21:59 UTC (permalink / raw)
  To: emacs-devel

    > When I do C-h k M-o I see a line beginning with Set face:

    M-o is a prefix key. ...

That is correct.  It would be nice if describe-key (`C-h k') provided
an error message (after a suitable and adjustable time out) for this.
This would help the novices and the foolish, but not anyone else.  (I
do not have time to propose a fix.)

-- 
    Robert J. Chassell                          GnuPG Key ID: 004B4AC8
    bob@rattlesnake.com                         bob@gnu.org
    http://www.rattlesnake.com                  http://www.teak.cc

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: C-h k does not work with M-o
  2007-05-28 21:59   ` Robert J. Chassell
@ 2007-05-28 22:07     ` Drew Adams
  2007-05-29 21:03     ` Michael Schierl
  1 sibling, 0 replies; 8+ messages in thread
From: Drew Adams @ 2007-05-28 22:07 UTC (permalink / raw)
  To: emacs-devel

>     > When I do C-h k M-o I see a line beginning with Set face:
> 
>     M-o is a prefix key. ...
> 
> That is correct.  It would be nice if describe-key (`C-h k') provided
> an error message (after a suitable and adjustable time out) for this.
> This would help the novices and the foolish, but not anyone else.  (I
> do not have time to propose a fix.)

Do you mean something like this?

(message "`%s' is a prefix key; type another key"
         (this-command-keys))
(sit-for 2)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-h k does not work with M-o
  2007-05-28 21:59   ` Robert J. Chassell
  2007-05-28 22:07     ` Drew Adams
@ 2007-05-29 21:03     ` Michael Schierl
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Schierl @ 2007-05-29 21:03 UTC (permalink / raw)
  To: emacs-devel

On Mon, 28 May 2007 21:59:18 +0000 (UTC), Robert J. Chassell wrote:

>     > When I do C-h k M-o I see a line beginning with Set face:
> 
>     M-o is a prefix key. ...
> 
> That is correct.  It would be nice if describe-key (`C-h k') provided
> an error message (after a suitable and adjustable time out) for this.
> This would help the novices and the foolish, but not anyone else.  (I
> do not have time to propose a fix.)

While we are at it: When pressing M-o C-h a list of all shortcuts starting 
with M-o appears. But when having pressed C-h k M-o there is no way from 
there to show this list, C-h k M-o C-h does not work as one might expect.

Michael

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-h k does not work with M-o
  2007-05-28 20:20 ` Drew Adams
  2007-05-28 21:59   ` Robert J. Chassell
@ 2007-06-02 15:44   ` Kevin Rodgers
  2007-06-02 17:41     ` Drew Adams
  1 sibling, 1 reply; 8+ messages in thread
From: Kevin Rodgers @ 2007-06-02 15:44 UTC (permalink / raw)
  To: emacs-devel

Drew Adams wrote:
>> When I do C-h k M-o I see a line beginning with Set face:
> 
> M-o is a prefix key. If you type another character, say `b', then you should
> get help for the key sequence, say `M-o b'.

Yes, but why does `C-h k M-o' display a command prompt?

-- 
Kevin Rodgers
Denver, Colorado, USA

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: C-h k does not work with M-o
  2007-06-02 15:44   ` Kevin Rodgers
@ 2007-06-02 17:41     ` Drew Adams
  0 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2007-06-02 17:41 UTC (permalink / raw)
  To: Kevin Rodgers, emacs-devel

> >> When I do C-h k M-o I see a line beginning with Set face:
> >
> > M-o is a prefix key. If you type another character, say `b',
> > then you should get help for the key sequence, say `M-o b'.
>
> Yes, but why does `C-h k M-o' display a command prompt?

Good point (and probably Robert's initial point, which I overlooked).

Apparently, Emacs thinks it should invoke `x-popup-menu' at that point, for
some reason.

I wonder if this thread is pertinent: "doc of prompt change with minor mode
for read-key-sequence" from 2006-09? Or at least I wonder if this might have
something to do with keyboard menus and "Hierarkey"?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-06-02 17:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-28 20:14 C-h k does not work with M-o Robert J. Chassell
2007-05-28 20:20 ` Drew Adams
2007-05-28 21:59   ` Robert J. Chassell
2007-05-28 22:07     ` Drew Adams
2007-05-29 21:03     ` Michael Schierl
2007-06-02 15:44   ` Kevin Rodgers
2007-06-02 17:41     ` Drew Adams
2007-05-28 20:31 ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

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

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).