X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/72c20d0be811966afccdb7551d3341d10d3be9a9..ca1b9b38dcf372b09028acf088f386ef09f2de84:/lisp/mpc.el diff --git a/lisp/mpc.el b/lisp/mpc.el index 3ddcf13678..aa7fee6adb 100644 --- a/lisp/mpc.el +++ b/lisp/mpc.el @@ -1,6 +1,6 @@ ;;; mpc.el --- A client for the Music Player Daemon -*- lexical-binding: t -*- -;; Copyright (C) 2006-2015 Free Software Foundation, Inc. +;; Copyright (C) 2006-2016 Free Software Foundation, Inc. ;; Author: Stefan Monnier ;; Keywords: multimedia @@ -265,10 +265,7 @@ defaults to 6600 and HOST defaults to localhost." (let ((v (match-string 3 host))) (setq host (match-string 2 host)) (when (and (stringp v) (not (string= "" v))) - (setq port - (if (string-match "[^[:digit:]]" v) - (string-to-number v) - v))))) + (setq port v)))) (when (file-name-absolute-p host) ;; Expand file name because `file-name-absolute-p' ;; considers paths beginning with "~" as absolute