Function: url-handler-expand-file-name

url-handler-expand-file-name is a byte-compiled function defined in url-handlers.el.gz.

Signature

(url-handler-expand-file-name FILE &optional BASE)

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-handlers.el.gz
(defun url-handler-expand-file-name (file &optional base)
  ;; When we see "/foo/bar" in a file whose working dir is "http://bla/bla",
  ;; there are two interpretations possible: either it's a local "/foo/bar"
  ;; or it's "http:/bla/foo/bar".  When working with URLs, the second
  ;; interpretation is the right one, but when working with Emacs file
  ;; names, the first is preferred.
  (if (file-name-absolute-p file)
      (expand-file-name file "/")
    (url-expand-file-name file base)))