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
76093858
Commit
76093858
authored
Sep 07, 2015
by
Mark Oteiza
Browse files
lisp/mpc.el (mpc--proc-connect): use file-name-absolute-p
parent
2cf2b199
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lisp/mpc.el
lisp/mpc.el
+4
-1
No files found.
lisp/mpc.el
View file @
76093858
...
...
@@ -268,7 +268,10 @@ defaults to 6600 and HOST defaults to localhost."
(if (string-match "
[^[:digit:]]
" v)
(string-to-number v)
v)))))
(when (string-prefix-p "
/
" host) ;FIXME: Use file-name-absolute-p?
(when (file-name-absolute-p host)
;; Expand file name because `file-name-absolute-p'
;; considers paths beginning with "
~
" as absolute
(setq host (expand-file-name host))
(setq local t))
(mpc--debug "
Connecting
to
%s:%s...
" host port)
...
...
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