]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix namespace problem in mpc.el
authorStefan Kangas <stefan@marxist.se>
Thu, 4 Aug 2022 09:32:26 +0000 (11:32 +0200)
committerStefan Kangas <stefan@marxist.se>
Thu, 4 Aug 2022 09:39:16 +0000 (11:39 +0200)
* lisp/mpc.el (mpc-tag-browser-tagtypes): Rename from
'tag-browser-tagtypes'.  Retain old name as an obsolete alias.

lisp/mpc.el

index 1464c36a91667bb4637b7013600521627f43b444..ba95308bf67464fb6f77c361f3a6c8bef8fb6621 100644 (file)
@@ -1569,8 +1569,9 @@ when constructing the set of constraints."
         (mpc-tagbrowser-refresh)
         buf))))
 
-(defvar tag-browser-tagtypes
-  (lazy-completion-table tag-browser-tagtypes
+(define-obsolete-variable-alias 'tag-browser-tagtypes 'mpc-tag-browser-tagtypes "29.1")
+(defvar mpc-tag-browser-tagtypes
+  (lazy-completion-table mpc-tag-browser-tagtypes
                          (lambda ()
                            (append '("Playlist" "Directory")
                                    (mpc-cmd-tagtypes)))))
@@ -1581,7 +1582,7 @@ when constructing the set of constraints."
    (list
     (let ((completion-ignore-case t))
       (intern
-       (completing-read "Tag: " tag-browser-tagtypes nil 'require-match)))))
+       (completing-read "Tag: " mpc-tag-browser-tagtypes nil 'require-match)))))
   (let* ((newbuf (mpc-tagbrowser-buf tag))
          (win (get-buffer-window newbuf 0)))
     (if win (select-window win)