Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2cf2b199
Commit
2cf2b199
authored
Sep 07, 2015
by
Mark Oteiza
Browse files
lisp/mpc.el (mpc-file-local-copy): check for absolute path
parent
2a792687
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lisp/mpc.el
lisp/mpc.el
+2
-1
No files found.
lisp/mpc.el
View file @
2cf2b199
...
...
@@ -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
")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment