From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22334: 25.1.50; Better sorting of blocks in describe-bindings Date: Sun, 10 Jan 2016 17:45:08 +0200 Message-ID: <83fuy5moaj.fsf@gnu.org> References: <874men77k8.fsf@ericabrahamsen.net> <83lh7znqs6.fsf@gnu.org> <87mvsf57v7.fsf@ericabrahamsen.net> <838u3yorff.fsf@gnu.org> <877fji5j4v.fsf@ericabrahamsen.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452440783 9820 80.91.229.3 (10 Jan 2016 15:46:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jan 2016 15:46:23 +0000 (UTC) Cc: 22334@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 10 16:46: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 1aIIC3-0004Pr-Qw for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2016 16:46:11 +0100 Original-Received: from localhost ([::1]:47414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIIC3-0004JY-4i for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jan 2016 10:46:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIIBz-0004JF-Df for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 10:46:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIIBu-0003vl-Lx for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 10:46:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIIBu-0003vZ-Is for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 10:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aIIBu-0004PB-Eq for bug-gnu-emacs@gnu.org; Sun, 10 Jan 2016 10:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jan 2016 15:46: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.145244071516878 (code B ref 22334); Sun, 10 Jan 2016 15:46:02 +0000 Original-Received: (at 22334) by debbugs.gnu.org; 10 Jan 2016 15:45:15 +0000 Original-Received: from localhost ([127.0.0.1]:45674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIIB8-0004OA-Mw for submit@debbugs.gnu.org; Sun, 10 Jan 2016 10:45:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35339) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aIIB7-0004Ny-BL for 22334@debbugs.gnu.org; Sun, 10 Jan 2016 10:45:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIIAz-0003QS-3h for 22334@debbugs.gnu.org; Sun, 10 Jan 2016 10:45:08 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIIAy-0003QO-Pv; Sun, 10 Jan 2016 10:45:05 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3097 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aIIAy-0006DH-5k; Sun, 10 Jan 2016 10:45:04 -0500 In-reply-to: <877fji5j4v.fsf@ericabrahamsen.net> (message from Eric Abrahamsen on Sun, 10 Jan 2016 09:16:16 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:111466 Archived-At: > 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. > >> >> While we're at it, minor modes with no bindings in effect could just > >> >> as well be omitted. > >> > > >> > It only takes a line or two; omitting that would be losing > >> > information, IMO. > >> > >> Not a big deal at all. > > > > I'm not sure I agree. > > I meant this didn't matter much to me -- having the extra two lines in > there isn't a big deal. 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.