From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#32212: 26; `subword-mode' doc string shows empty key-binding list Date: Fri, 20 Jul 2018 10:38:17 +0200 Message-ID: <87r2jyjo92.fsf@gmx.net> References: <87effy7mer.fsf@gmail.com> <83tvou1jdb.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532075832 10456 195.159.176.226 (20 Jul 2018 08:37:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2018 08:37:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Noam Postavsky , 32212@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 20 10:37:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgQuR-0002cG-4o for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jul 2018 10:37:07 +0200 Original-Received: from localhost ([::1]:46952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgQwX-0001ef-Vd for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jul 2018 04:39:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fgQwL-0001d3-Dy for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 04:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fgQwI-0007IV-Ba for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 04:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43763) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fgQwI-0007IR-6y for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 04:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fgQwH-0005Gg-RX for bug-gnu-emacs@gnu.org; Fri, 20 Jul 2018 04:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jul 2018 08:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32212 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 32212-submit@debbugs.gnu.org id=B32212.153207590820207 (code B ref 32212); Fri, 20 Jul 2018 08:39:01 +0000 Original-Received: (at 32212) by debbugs.gnu.org; 20 Jul 2018 08:38:28 +0000 Original-Received: from localhost ([127.0.0.1]:48781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgQvk-0005Fr-Jx for submit@debbugs.gnu.org; Fri, 20 Jul 2018 04:38:28 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:33471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fgQvi-0005Fd-Pb for 32212@debbugs.gnu.org; Fri, 20 Jul 2018 04:38:27 -0400 Original-Received: from rosalinde ([178.6.211.58]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MW9TR-1fVEcV2K9B-00XHOP; Fri, 20 Jul 2018 10:38:18 +0200 In-Reply-To: <83tvou1jdb.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 Jul 2018 10:01:04 +0300") X-Provags-ID: V03:K1:a6D/vJgHdWDtksFjq7yKPsX9CSe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it@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" Xref: news.gmane.org gmane.emacs.bugs:148711 Archived-At: On Fri, 20 Jul 2018 10:01:04 +0300 Eli Zaretskii wrote: >> From: Noam Postavsky >> Date: Thu, 19 Jul 2018 20:58:52 -0400 >> Cc: 32212@debbugs.gnu.org >> >> > emacs -Q >> > >> > C-h f subword-mode >> > >> > You see this at the end of buffer *Help*: >> > >> > key binding >> > --- ------- >> > >> > >> > It's not just about this appearing before the library is loaded. >> > Loading the library does not populate the list of keys and their >> > bindings. You always get such a heading, with no keys shown. >> >> >> Seems to be a regression in 25.1, in 24.5 I see >> >> key binding >> --- ------- >> >> Prefix Command >> >> subword-backward-kill > > ISTR that the implementation changed radically, so perhaps this is the > (unintended) consequence. Maybe due to this change: commit 6ddc44225e743e2b2a0d5c192f50aefd7a4a915b Author: Daniel Colascione Date: Sun Mar 23 00:36:26 2014 -0700 Merge capitalized-words-mode and subword-mode diff --git a/lisp/progmodes/subword.el b/lisp/progmodes/subword.el --- a/lisp/progmodes/subword.el +++ b/lisp/progmodes/subword.el @@ -104,12 +82,6 @@ (defvar subword-mode-map - (let ((map (make-sparse-keymap))) - (dolist (cmd '(forward-word backward-word mark-word kill-word - backward-kill-word transpose-words - capitalize-word upcase-word downcase-word - left-word right-word)) - (let ((othercmd (let ((name (symbol-name cmd))) - (string-match "\\([[:alpha:]-]+\\)-word[s]?" name) - (intern (concat "subword-" (match-string 1 name)))))) - (define-key map (vector 'remap cmd) othercmd))) - map) + ;; We originally remapped motion keys here, but now use Emacs core + ;; hooks. Leave this keymap around so that user additions to it + ;; keep working. + (make-sparse-keymap) "Keymap used in `subword-mode' minor mode.") Steve Berman