From 706b3c005aac0d3b606b4265c315bdd3bc6d1a5a Mon Sep 17 00:00:00 2001 From: Mark Oteiza Date: Sat, 1 Aug 2015 00:46:02 -0400 Subject: [PATCH] mpc.el (mpc--proc-connect): attempt socket connection if host is an absolute path (Bug#19394) --- lisp/mpc.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/mpc.el b/lisp/mpc.el index 76c08db..4d04cf8 100644 --- a/lisp/mpc.el +++ b/lisp/mpc.el @@ -279,7 +279,10 @@ defaults to 6600 and HOST defaults to localhost." (let* ((coding-system-for-read 'utf-8-unix) (coding-system-for-write 'utf-8-unix) (proc (condition-case err - (open-network-stream "MPC" (current-buffer) host port) + (make-network-process :name "MPC" :buffer (current-buffer) + :host host :service port + :remote (if (string-prefix-p "/" host) + host)) (error (user-error (error-message-string err)))))) (when (processp mpc-proc) ;; Inherit the properties of the previous connection. -- 2.5.0