From 536fd3307c2004b0d6da55a818a4977e822e109f Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Wed, 13 Jun 2018 23:33:36 -0400 Subject: * lisp/emms-show-all.el: bug fix: preempted defvar Buffer read-only error on keymap interaction. Bug report by Fran Burstall. --- lisp/emms-show-all.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/emms-show-all.el b/lisp/emms-show-all.el index 8613b68..09189d6 100644 --- a/lisp/emms-show-all.el +++ b/lisp/emms-show-all.el @@ -41,10 +41,6 @@ (defvar emms-show-all-track-alist nil "Declare so as to silence the compiler.") -(define-derived-mode emms-show-all-mode text-mode "Emms-Show-All" - "Major mode for `emms-show-all' - \\{emms-show-all-mode-map}") - (defvar emms-show-all-mode-map (let ((map (make-sparse-keymap))) (set-keymap-parent map text-mode-map) @@ -53,6 +49,9 @@ map) "Keymap for `emms-show-all-mode'.") +(define-derived-mode emms-show-all-mode text-mode "Emms-Show-All" + "Major mode for `emms-show-all' + \\{emms-show-all-mode-map}") (defun emms-show-all-edit-track () "Edit the track being shown." -- cgit v1.2.3