GNU bug report logs - #29141
25.3; Precise if read-key of prefix key is active

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Pierre-Yves Luyten <py@HIDDEN>; dated Fri, 3 Nov 2017 22:31:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Nov 2017 22:31:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 03 18:31:00 2017
Received: from localhost ([127.0.0.1]:49921 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eAkUO-0005wZ-6U
	for submit <at> debbugs.gnu.org; Fri, 03 Nov 2017 18:31:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49891)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <py@HIDDEN>) id 1eAkUM-0005wI-31
 for submit <at> debbugs.gnu.org; Fri, 03 Nov 2017 18:30:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <py@HIDDEN>) id 1eAkUG-00087f-5B
 for submit <at> debbugs.gnu.org; Fri, 03 Nov 2017 18:30:53 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:47252)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <py@HIDDEN>) id 1eAkUG-00087H-2p
 for submit <at> debbugs.gnu.org; Fri, 03 Nov 2017 18:30:52 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40849)
 by lists.gnu.org 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 eggs.gnu.org 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 14.mo6.mail-out.ovh.net ([46.105.56.113]:36340)
 by eggs.gnu.org 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 player774.ha.ovh.net (b6.ovh.net [213.186.33.56])
 by mo6.mail-out.ovh.net (Postfix) with ESMTP id 934C7119959
 for <bug-gnu-emacs@HIDDEN>; Fri,  3 Nov 2017 23:30:38 +0100 (CET)
Received: from [192.168.4.20] (85-170-98-108.rev.numericable.fr
 [85.170.98.108]) (Authenticated sender: py@HIDDEN)
 by player774.ha.ovh.net (Postfix) with ESMTPSA id A7E794007F
 for <bug-gnu-emacs@HIDDEN>; Fri,  3 Nov 2017 23:30:37 +0100 (CET)
To: bug-gnu-emacs@HIDDEN
From: Pierre-Yves Luyten <py@HIDDEN>
Subject: 25.3; Precise if read-key of prefix key is active
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
 Thunderbird/52.3.0
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-SPAMSTATE: OK
X-VR-SPAMSCORE: 50
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedttddrgeekgdduhedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecufedttdenucgoteefjeefqddtgeculdehtddm
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Hello

Context
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

Behavior
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 : 
https://github.com/justbur/emacs-which-key/issues/176

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

Regards
Pierre-Yves




Acknowledgement sent to Pierre-Yves Luyten <py@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#29141; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
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.