From 5650f6bbcd05e9759193342a3004af4de252765c Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Fri, 29 Dec 2017 11:31:48 -0500 Subject: * lisp/emms-metaplaylist-mode.el: bug fix Stop center-on-current interpreting special regexp characters. --- lisp/emms-metaplaylist-mode.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lisp') diff --git a/lisp/emms-metaplaylist-mode.el b/lisp/emms-metaplaylist-mode.el index e1ccda7..4f84a01 100644 --- a/lisp/emms-metaplaylist-mode.el +++ b/lisp/emms-metaplaylist-mode.el @@ -139,11 +139,11 @@ (when (not emms-playlist-buffer) (error "no current playlist buffer")) (goto-char (point-min)) - (when (not (search-forward-regexp - (or (buffer-name emms-playlist-buffer) - "") - (point-max) t)) - (goto-char (point-min))) + (when (not + (search-forward-regexp (regexp-quote + (buffer-name emms-playlist-buffer)) + (point-max) t)) + (error "cannot not find the current playlist buffer")) (goto-char (point-at-bol))) (defun emms-metaplaylist-mode-create () -- cgit v1.2.3