]> git.eshelyaron.com Git - emacs.git/commitdiff
Make tabulated-list-mode-map inherit from special-mode-map
authorAlex Branham <alex.branham@gmail.com>
Mon, 21 Jan 2019 15:50:11 +0000 (09:50 -0600)
committerEli Zaretskii <eliz@gnu.org>
Fri, 25 Jan 2019 08:47:57 +0000 (10:47 +0200)
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-mode-map): Use
  'make-composed-keymap'.

Bug #30452

lisp/emacs-lisp/tabulated-list.el

index 6fdca2cd0831acb00df630398aee2a4a85de7890..12d0151d67ff9a7d1aa762d15aceede533c0799d 100644 (file)
@@ -151,8 +151,10 @@ If ADVANCE is non-nil, move forward by one line afterwards."
       (forward-line)))
 
 (defvar tabulated-list-mode-map
-  (let ((map (copy-keymap special-mode-map)))
-    (set-keymap-parent map button-buffer-map)
+  (let ((map (make-sparse-keymap)))
+    (set-keymap-parent map (make-composed-keymap
+                            button-buffer-map
+                            special-mode-map))
     (define-key map "n" 'next-line)
     (define-key map "p" 'previous-line)
     (define-key map "S" 'tabulated-list-sort)