[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 2cf2b19 2/3: lisp/mpc.el (mpc-file-local-copy): che
From: |
Mark Oteiza |
Subject: |
[Emacs-diffs] master 2cf2b19 2/3: lisp/mpc.el (mpc-file-local-copy): check for absolute path |
Date: |
Thu, 10 Sep 2015 17:41:19 +0000 |
branch: master
commit 2cf2b19985c4b3989a6ab9acfb247e2dc823669d
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>
lisp/mpc.el (mpc-file-local-copy): check for absolute path
---
lisp/mpc.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lisp/mpc.el b/lisp/mpc.el
index 205c94b..3600b08 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")