X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ac1a0ce1c6ba60a3faddc64463cb7a697b9d8fd2..eef5843c3458907e4bef35be10d46fea99f412f9:/lisp/url/url-expand.el diff --git a/lisp/url/url-expand.el b/lisp/url/url-expand.el index e5c795969a..1142532e1a 100644 --- a/lisp/url/url-expand.el +++ b/lisp/url/url-expand.el @@ -1,6 +1,6 @@ ;;; url-expand.el --- expand-file-name for URLs -;; Copyright (C) 1999, 2004-2012 Free Software Foundation, Inc. +;; Copyright (C) 1999, 2004-2014 Free Software Foundation, Inc. ;; Keywords: comm, data, processes @@ -24,7 +24,6 @@ (require 'url-methods) (require 'url-util) (require 'url-parse) -(eval-when-compile (require 'cl)) (defun url-expander-remove-relative-links (name) ;; Strip . and .. from pathnames @@ -113,7 +112,7 @@ path components followed by `..' are removed, along with the `..' itself." ;; Well, they told us the scheme, let's just go with it. nil (setf (url-type urlobj) (or (url-type urlobj) (url-type defobj))) - (setf (url-port urlobj) (or (url-port urlobj) + (setf (url-port urlobj) (or (url-portspec urlobj) (and (string= (url-type urlobj) (url-type defobj)) (url-port defobj))))