GNU logs - #29141, boring messages

Message sent to bug-gnu-emacs@HIDDEN:

X-Loop: help-debbugs@HIDDEN
Subject: bug#29141: 25.3; Precise if read-key of prefix key is active
Resent-From: Pierre-Yves Luyten <py@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 03 Nov 2017 22:31:02 +0000
Resent-Message-ID: <handler.29141.B.150974826022855 <at>>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 29141
X-GNU-PR-Package: emacs
To: 29141 <at>
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> id=B.150974826022855
          (code B ref -1); Fri, 03 Nov 2017 22:31:02 +0000
Received: (at submit) by; 3 Nov 2017 22:31:00 +0000
Received: from localhost ([]:49921
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1eAkUO-0005wZ-6U
	for submit <at>; Fri, 03 Nov 2017 18:31:00 -0400
Received: from ([]:49891)
 by with esmtp (Exim 4.84_2)
 (envelope-from <py@HIDDEN>) id 1eAkUM-0005wI-31
 for submit <at>; Fri, 03 Nov 2017 18:30:58 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <py@HIDDEN>) id 1eAkUG-00087f-5B
 for submit <at>; Fri, 03 Nov 2017 18:30:53 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
Received: from ([2001:4830:134:3::11]:47252)
 by with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <py@HIDDEN>) id 1eAkUG-00087H-2p
 for submit <at>; Fri, 03 Nov 2017 18:30:52 -0400
Received: from ([2001:4830:134:3::10]:40849)
 by with esmtp (Exim 4.71)
 (envelope-from <py@HIDDEN>) id 1eAkUE-00050e-Rf
 for bug-gnu-emacs@HIDDEN; Fri, 03 Nov 2017 18:30:51 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <py@HIDDEN>) id 1eAkUB-0007yZ-NM
 for bug-gnu-emacs@HIDDEN; Fri, 03 Nov 2017 18:30:50 -0400
Received: from ([]:36340)
 by with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <py@HIDDEN>) id 1eAkUB-0007rb-Fa
 for bug-gnu-emacs@HIDDEN; Fri, 03 Nov 2017 18:30:47 -0400
Received: from ( [])
 by (Postfix) with ESMTP id 934C7119959
 for <bug-gnu-emacs@HIDDEN>; Fri,  3 Nov 2017 23:30:38 +0100 (CET)
Received: from [] (
 []) (Authenticated sender: py@HIDDEN)
 by (Postfix) with ESMTPSA id A7E794007F
 for <bug-gnu-emacs@HIDDEN>; Fri,  3 Nov 2017 23:30:37 +0100 (CET)
From: Pierre-Yves Luyten <py@HIDDEN>
Message-ID: <89fdbabe-114f-0509-1993-03c15c9a8170@HIDDEN>
Date: Fri, 3 Nov 2017 23:30:36 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Ovh-Tracer-Id: 17153366558074777611
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedttddrgeekgdduhedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecufedttdenucgoteefjeefqddtgeculdehtddm
X-detected-operating-system: by GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -5.0 (-----)


i am working on convenience packages to help the user with available 
shortcuts. One thing i am using is "which-key". This package allows
to display visualy the existing shortcuts for a given prefix key.
Actually it might work for any keymap, so it is an efficient way
for the user to discover a keymap.

Expected behavior
Since the user needs to learn the core of Emacs, it is necessary to be 
able to present to the user, not only available shortuts, but also the 
name of the current keymap

As far as i know, there is no way to say if a prefix key is active.
One could parse which shortcuts are active, then deduce which prefix key
is active, but this would not be very reliable.

Enhancement Request
So, is it possible to add a func to tell if there is a prefix key?
obviously i think the func might be more general, for example checking 
if there is a read-key active, else a terminal keymap, else a minor mode 
overriding map, and so on from highest to lowest priority, and checking 
if a prefix key is active -> leading to another keymap being active.
I confess i have no clue about "virtual" keymaps like "C-c".
This is a prefix key but i think different shortcuts in different keymaps.

The opened bug against which-key is :

Please tell me if this enhancement seems fair to you, in which case
do you have a clue so i can evenutally contribute.


Message sent:

Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Pierre-Yves Luyten <py@HIDDEN>
Subject: bug#29141: Acknowledgement (25.3; Precise if read-key of prefix
 key is active)
Message-ID: <handler.29141.B.150974826022855.ack <at>>
References: <89fdbabe-114f-0509-1993-03c15c9a8170@HIDDEN>
X-Gnu-PR-Message: ack 29141
X-Gnu-PR-Package: emacs
Reply-To: 29141 <at>
Date: Fri, 03 Nov 2017 22:31:02 +0000

Thank you for filing a new bug report with

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):

If you wish to submit further information on this problem, please
send it to 29141 <at>

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.