From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#32212: 26; `subword-mode' doc string shows empty key-binding list Date: Sun, 22 Jul 2018 16:22:51 -0400 Message-ID: <874lgr58bo.fsf@gmail.com> References: <87effy7mer.fsf@gmail.com> <83tvou1jdb.fsf@gnu.org> <87r2jyjo92.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1532290872 19068 195.159.176.226 (22 Jul 2018 20:21:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jul 2018 20:21:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 32212@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 22 22:21: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 1fhKqo-0004pM-FU for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jul 2018 22:21:06 +0200 Original-Received: from localhost ([::1]:57377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhKsv-00064j-4O for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jul 2018 16:23:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhKsk-00063D-2B for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2018 16:23:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhKsg-0001w5-SZ for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2018 16:23:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47700) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhKsg-0001vy-Mv for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2018 16:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fhKsg-0004yD-BJ for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2018 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Jul 2018 20:23:02 +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.153229098019083 (code B ref 32212); Sun, 22 Jul 2018 20:23:02 +0000 Original-Received: (at 32212) by debbugs.gnu.org; 22 Jul 2018 20:23:00 +0000 Original-Received: from localhost ([127.0.0.1]:52718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhKse-0004xe-G4 for submit@debbugs.gnu.org; Sun, 22 Jul 2018 16:23:00 -0400 Original-Received: from mail-io0-f174.google.com ([209.85.223.174]:40861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhKsd-0004xK-5Y; Sun, 22 Jul 2018 16:22:59 -0400 Original-Received: by mail-io0-f174.google.com with SMTP id l14-v6so13930625iob.7; Sun, 22 Jul 2018 13:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=6zXUsrmsU82y6WA5qMHCj0Z5cH+Q5zYfSRyW9Lv1QGg=; b=EfUUwC4txKWM9LyAT7Dhlt/O/ccaehl/i/riLVW7XfMZfmC8foHdeoc5gQaqu1qCci ltaGyv5p2BGFve0bF3LArgaTAntihfi3FUz8eG84XdK2mNGi94hz1QvXUxQaVMjFkQCC GW9pcEnbPz4Z9huq5WZLMz7xO4D2e0h5yui/bRePBQ3ANKqy3y63JRL5qIfTvcEuSaSB MZVxaMJFdbsWIVubYu92Eu7DBN3f2kvCYFkJW2HxqdJ+/AeSjebr5HjTw+ieIOplOC/t 05OT57vCedCVwlKkbLrm19ueuPE8PuV19ZtFM8AYA5IdRTly2iF+3yKmrKMRJ4i3tQ6F BpvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=6zXUsrmsU82y6WA5qMHCj0Z5cH+Q5zYfSRyW9Lv1QGg=; b=czbLSZT4M6Gco+k9J5L2LbkZGZvPe5pQ0sanLTDhzYiODQimExG//qKmHILi9iPhMG pqp9xeG3/aHZ1lYdL8iqLM+SiDhliDwzDYWqVDZI4IWdZ/kja4tV5Gbit2WYzAu6KDlX lB/vBAh+BU9U3S13e8M7LSSrhDvCtUzPw7QbIWvb8CKDyWpeGemvbj59W4Zz7Ukd+pWV Y9A83K/eAQBUagH4Zfjt1YsjUtuWCjBBUsK7b4JV3iAbfum1vIYtVnLwKa6g1LOaAQtW v3Jy83atgjzUZDNbuAB3WMN4LctXlqelQDO9QX7Eu0mNUMCOnMFDTA7OmvuvsTXaLMef ji8A== X-Gm-Message-State: AOUpUlE8rn65OYHaU9wNcwlf8aKjLzsnQ+roBgbRolNpgBl3JnwYfgt7 MeMuyVz7fE8BuNPL2t3SJdZ3NR9v X-Google-Smtp-Source: AAOMgpcKWxrfW9EniDw4FM1NqcaJz9CmLc/D965UBCHF7jpXp6v9NGim4ghoxaVN0AKPjqbXFk1hMQ== X-Received: by 2002:a6b:8e07:: with SMTP id q7-v6mr7934136iod.169.1532290973559; Sun, 22 Jul 2018 13:22:53 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id z67-v6sm3844403itg.25.2018.07.22.13.22.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Jul 2018 13:22:52 -0700 (PDT) In-Reply-To: <87r2jyjo92.fsf@gmx.net> (Stephen Berman's message of "Fri, 20 Jul 2018 10:38:17 +0200") 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" Xref: news.gmane.org gmane.emacs.bugs:148831 Archived-At: --=-=-= Content-Type: text/plain tags 32212 + patch quit Stephen Berman writes: > Maybe due to this change: > (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) Aha, then we should just remove it from the docstring, right? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Omit-keymap-from-subword-mode-docstring-Bug-32212.patch Content-Description: patch >From 6fd80dcf0fc6261de80c130fb535ad334858cbf3 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 22 Jul 2018 16:15:43 -0400 Subject: [PATCH] Omit keymap from subword-mode docstring (Bug#32212) * lisp/progmodes/subword.el (subword-mode): Remove listing of subword-mode-map bindings, since it is empty as of 2014-03-23 "Merge capitalized-words-mode and subword-mode". --- lisp/progmodes/subword.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/progmodes/subword.el b/lisp/progmodes/subword.el index cbaa273a7a..c09ba37c85 100644 --- a/lisp/progmodes/subword.el +++ b/lisp/progmodes/subword.el @@ -113,9 +113,7 @@ subword-mode NSGraphicsContext => \"NS\", \"Graphics\" and \"Context\" This mode changes the definition of a word so that word commands -treat nomenclature boundaries as word boundaries. - -\\{subword-mode-map}" +treat nomenclature boundaries as word boundaries." :lighter " ," (when subword-mode (superword-mode -1)) (subword-setup-buffer)) -- 2.11.0 --=-=-=--