emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] lisp/emms-playlist-mode.el: Fix `emms-playlist-mode-go' to respe


From: Kierin Bell
Subject: [PATCH] lisp/emms-playlist-mode.el: Fix `emms-playlist-mode-go' to respect `emms-mark-mode'
Date: Sun, 26 Mar 2023 04:45:09 +0000

lisp/emms-playlist-mode.el (emms-playlist-mode-go): Do not run
`emms-playlist-mode' when `major-mode' is `emms-mark-mode'.
---
This is a patch for another bug that causes `emms-playlist-mode-go' to disable 
emms-mark-mode, which is not what users would probably expect.

 emms-playlist-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emms-playlist-mode.el b/emms-playlist-mode.el
index 9b1f047..cae985e 100644
--- a/emms-playlist-mode.el
+++ b/emms-playlist-mode.el
@@ -510,7 +510,7 @@ When NO-NEWLINE is non-nil, do not insert a newline after 
the track."
          (not (buffer-live-p emms-playlist-buffer)))
       (error "No current Emms buffer")
     (switch-to-buffer emms-playlist-buffer)
-    (when (and (not (eq major-mode 'emms-playlist-mode))
+    (when (and (not (member major-mode '(emms-playlist-mode emms-mark-mode)))
               emms-playlist-buffer-p)
       (emms-playlist-mode))
     (when emms-playlist-mode-center-when-go
-- 
2.39.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]