From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Branham Newsgroups: gmane.emacs.bugs Subject: bug#30452: [PATCH] Use 'make-sparse-keymap' rather than 'copy-keymap' Date: Tue, 15 Jan 2019 11:57:52 -0600 Message-ID: <8736ptiz1b.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1547575032 15938 195.159.176.226 (15 Jan 2019 17:57:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2019 17:57:12 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 To: 30452@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 15 18:57:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjSxX-00040u-4P for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jan 2019 18:57:07 +0100 Original-Received: from localhost ([127.0.0.1]:35453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjSze-0003t7-8h for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jan 2019 12:59:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gjSzP-0003qe-9H for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2019 12:59:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gjSzO-0001aX-88 for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2019 12:59:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gjSzN-0001ZH-Pm for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2019 12:59:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gjSzN-0001GR-LE for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2019 12:59:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Alex Branham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Jan 2019 17:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30452-submit@debbugs.gnu.org id=B30452.15475750844783 (code B ref 30452); Tue, 15 Jan 2019 17:59:01 +0000 Original-Received: (at 30452) by debbugs.gnu.org; 15 Jan 2019 17:58:04 +0000 Original-Received: from localhost ([127.0.0.1]:60337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjSyS-0001F5-53 for submit@debbugs.gnu.org; Tue, 15 Jan 2019 12:58:04 -0500 Original-Received: from mail-ot1-f41.google.com ([209.85.210.41]:45179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gjSyP-0001Ea-VS for 30452@debbugs.gnu.org; Tue, 15 Jan 2019 12:58:02 -0500 Original-Received: by mail-ot1-f41.google.com with SMTP id 32so3272414ota.12 for <30452@debbugs.gnu.org>; Tue, 15 Jan 2019 09:58:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=wWURqbDEpG5AdwaQCYixZpZebc7E7T4syMOv/RLWaAc=; b=aULeuYzIfr5BIGfiW1HzdB2FSvS/JOtMyXwOSkICyiNYapa4lXfCBOIe7WQTjzsSa9 YNyve2DtaBixIYBlSGRMgjlwgmPpwy/BEqEnDm8cbE27W1pgpLEnGhVUQVybMZBtYOq8 NMvrVyUxToqTANDySKNXlJ2JL+tluA1ykE/1rZyyxqpSuO+YeoWCNOPHiAzRKrzsQoBy I2y7OFVwNRGNgcDPdCq0DodjPM41CwX9zhLHlEr8jlX4K22e6hLMO06WM/GATxE94/CO wpdJyKMfCdOkyuzT/DOImlwiPLkDzvxlUkhzaLYp3O2cM4CtIPVRlU8gH6jB7Xlpz4GH 96Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=wWURqbDEpG5AdwaQCYixZpZebc7E7T4syMOv/RLWaAc=; b=a4r5oc/wfadtLl2AoFrANcbrBVghZLh38p+ugX6TciyoSCQcgmw503WnsY8sDrXxNT MaX4W/sVhIC9Mdw9ljSllSV4KJjEazSIgsClNDB4GUeTteb1Zb5nCr9oM7xbNRzETmja IZ6UYNpuGwyPnyLOEpIQEfxHj0iqOf+w8hNBAFI2qq8NtZqLUaZwF7Ev+CITtC/Y3t71 jMFKvwdXieWI5E+aDOOQndwUVS/mQhOOaWS5aZgS/nZWLzAJE97Lq2xhYIWxVz2UKxCi ZSX4/rC1Lrj3yhS841UofKbzeDIrDoQbSpTJ/AqCh6caby2M49OrgcwJ92zQ9fz9MHyw FeYg== X-Gm-Message-State: AJcUukeyZ522+OE5mjFa0juG0jewFby4h4DQyOZhk7uCCDKykMbJfRvn sGKqWgEtu1ZV158ZFgqoIyjE0qks X-Google-Smtp-Source: ALg8bN5o7cFQKE0CzXfV1O939b2RI4LIPhz713wRTir6kQeLqqxXSr2ZD1+kgntEkkX9nKjR8rvvAw== X-Received: by 2002:a05:6830:1d1:: with SMTP id r17mr2915825ota.36.1547575075613; Tue, 15 Jan 2019 09:57:55 -0800 (PST) Original-Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208]) by smtp.gmail.com with ESMTPSA id 31sm3509822otw.55.2019.01.15.09.57.54 for <30452@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Jan 2019 09:57:54 -0800 (PST) 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: 209.51.188.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:154454 Archived-At: --=-=-= Content-Type: text/plain Hello - Here's a tiny patch that changes the call from copy-keymap to make-sparse-keymap. Thanks, Alex >From c7f6db630f720fd26f0f1cc45631326bdcec136c Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Tue, 15 Jan 2019 11:50:55 -0600 Subject: [PATCH] Make tabulated-list-mode-map inherit from special-mode-map * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Use 'make-sparse-keymap' rather than copying 'special-mode-map'. Bug #30452 --- lisp/emacs-lisp/tabulated-list.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el index 6fdca2cd08..8c99728fd4 100644 --- a/lisp/emacs-lisp/tabulated-list.el +++ b/lisp/emacs-lisp/tabulated-list.el @@ -151,7 +151,7 @@ tabulated-list-put-tag (forward-line))) (defvar tabulated-list-mode-map - (let ((map (copy-keymap special-mode-map))) + (let ((map (make-sparse-keymap))) (set-keymap-parent map button-buffer-map) (define-key map "n" 'next-line) (define-key map "p" 'previous-line) -- 2.19.2 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Make-tabulated-list-mode-map-inherit-from-special-mo.patch >From c7f6db630f720fd26f0f1cc45631326bdcec136c Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Tue, 15 Jan 2019 11:50:55 -0600 Subject: [PATCH] Make tabulated-list-mode-map inherit from special-mode-map * lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Use 'make-sparse-keymap' rather than copying 'special-mode-map'. Bug #30452 --- lisp/emacs-lisp/tabulated-list.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/tabulated-list.el b/lisp/emacs-lisp/tabulated-list.el index 6fdca2cd08..8c99728fd4 100644 --- a/lisp/emacs-lisp/tabulated-list.el +++ b/lisp/emacs-lisp/tabulated-list.el @@ -151,7 +151,7 @@ tabulated-list-put-tag (forward-line))) (defvar tabulated-list-mode-map - (let ((map (copy-keymap special-mode-map))) + (let ((map (make-sparse-keymap))) (set-keymap-parent map button-buffer-map) (define-key map "n" 'next-line) (define-key map "p" 'previous-line) -- 2.19.2 --=-=-=--