From: Mark Oteiza Date: Mon, 7 Sep 2015 21:57:46 +0000 (-0400) Subject: lisp/mpc.el (mpc-file-local-copy): check for absolute path X-Git-Tag: emacs-25.0.90~1224^2~160 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2cf2b19985c4b3989a6ab9acfb247e2dc823669d;p=emacs.git lisp/mpc.el (mpc-file-local-copy): check for absolute path --- diff --git a/lisp/mpc.el b/lisp/mpc.el index 205c94b4965..3600b081f9b 100644 --- a/lisp/mpc.el +++ b/lisp/mpc.el @@ -909,7 +909,8 @@ If PLAYLIST is t or nil or missing, use the main playlist." (defun mpc-file-local-copy (file) ;; Try to set mpc-mpd-music-directory. (when (and (null mpc-mpd-music-directory) - (string-match "\\`localhost" mpc-host)) + (or (string-match "\\`localhost" mpc-host) + (file-name-absolute-p mpc-host))) (let ((files `(,(let ((xdg (getenv "XDG_CONFIG_HOME"))) (concat (if (and xdg (file-name-absolute-p xdg)) xdg "~/.config")