From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#22334: 25.1.50; Better sorting of blocks in describe-bindings Date: Mon, 11 Jan 2016 09:33:31 +0800 Message-ID: <87egdo528k.fsf@ericabrahamsen.net> References: <874men77k8.fsf@ericabrahamsen.net> <83lh7znqs6.fsf@gnu.org> <87mvsf57v7.fsf@ericabrahamsen.net> <838u3yorff.fsf@gnu.org> <877fji5j4v.fsf@ericabrahamsen.net> <83fuy5moaj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452476065 13337 80.91.229.3 (11 Jan 2016 01:34:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2016 01:34:25 +0000 (UTC) Cc: 22334@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 11 02:34:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aIRN4-0008Ci-Cc for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jan 2016 02:34:10 +0100 Original-Received: from localhost ([::1]:50679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIRN3-0002ti-PD for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2016 20:34:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIRMz-0002ta-VL for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 20:34:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIRMw-0007Vr-Nx for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 20:34:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIRMw-0007Vn-Jv for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 20:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aIRMw-00016i-8P for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 20:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jan 2016 01:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22334 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22334-submit@debbugs.gnu.org id=B22334.14524760274232 (code B ref 22334); Mon, 11 Jan 2016 01:34:02 +0000 Original-Received: (at 22334) by debbugs.gnu.org; 11 Jan 2016 01:33:47 +0000 Original-Received: from localhost ([127.0.0.1]:45849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIRMh-00016C-Fg for submit@debbugs.gnu.org; Sun, 10 Jan 2016 20:33:47 -0500 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]:56457) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIRMf-000163-1P for 22334@debbugs.gnu.org; Sun, 10 Jan 2016 20:33:45 -0500 Original-Received: from localhost (unknown [123.123.19.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 869B91F40B6; Mon, 11 Jan 2016 01:34:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1452476046; bh=AcDJg30P9LrhlUv34b5IfVntdLC5bLKh95hYOzP2GiU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=KwyutnMsfAsRdz+FSipTJ3/lVxZ8lfZfl0HHjmR/p3gldzi6t2jyyNIJJG8LM3st4 VPHl0/zp+55mKTeR1tkfh+sDWsXlPaLq5WMSDXbuWATUXtI8vvjWVdHFOs1E9JI5Rs RnejL7jkN6bzmpIx5XbuLcw8adfkbNOMRG/8dufA= In-Reply-To: <83fuy5moaj.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Jan 2016 17:45:08 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111478 Archived-At: On 01/10/16 17:45 PM, Eli Zaretskii wrote: >> From: Eric Abrahamsen >> Cc: 22334@debbugs.gnu.org >> Date: Sun, 10 Jan 2016 09:16:16 +0800 >> >> > Please try figuring out how come what you see is so much different >> > from what I see here. Or maybe someone else can >> >> Poking around a little more, it looks like the minor modes *always* come >> first. I'm talking about `describe-bindings' (C-h b), not >> `describe-mode', see below. > > Sorry, my bad: for some reason, I did look at "C-h m". Now that I try > "C-h b", I do see those bindings listed. > > However, they aren't for self-inserting bindings, they are for "Key > translations". (The self-inserting characters are mentioned much > farther below, and they take exactly 3 lines.) The bindings for the > major mode follow directly after these. > > The code that puts key translations first is very old, it was added > almost 25 years ago. It is triggered by a non-nil values of either > keyboard-translate-table or key-translation-map. > > Maybe we should do something similar to evaluation in *scratch*: limit > the number of such bindings to some customizable value, and display a > "..." button instead of the rest? > > I don't think putting them at the bottom is a good idea: as Andreas > points out, the bindings are shown in the order of their priority, so > the order cannot be arbitrarily changed. What does "priority" mean? That earlier bindings are able to shadow later bindings? Maybe use outline-mode-style collapsible headlines? That way the translations could stay at the top, but be folded by default, and the major mode could be the next (unfolded) block. Right now, "paging" is enabled, with the ^L markers, but that's not really that useful. [...] > Actually, which minor mode bindings do you see in "C-h b" display, and > in what mode? It seems like "Emacs -Q" doesn't have any such bindings > displayed, and neither does C mode. No, "emacs -Q" doesn't have anything -- no minor modes are enabled by default! With full customizations in effect, my *scratch* buffer gives the following binding blocks: Key translations: key binding --- ------- [692 lines!] `paredit-mode' Minor Mode Bindings: key binding --- ------- `recentf-mode' Minor Mode Bindings: key binding --- ------- [no bindings] `projectile-mode' Minor Mode Bindings: key binding --- ------- `company-mode' Minor Mode Bindings: key binding --- ------- [no bindings] `electric-pair-mode' Minor Mode Bindings: key binding --- ------- [no bindings] Major Mode Bindings: key binding --- ------- Global Bindings: key binding --- ------- Function key map translations: key binding --- ------- Input decoding map translations: key binding --- -------