summaryrefslogtreecommitdiff
path: root/lisp/url/url-handlers.el
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2015-10-29 03:00:50 +0200
committerDmitry Gutov <dgutov@yandex.ru>2015-10-29 03:01:45 +0200
commitffa41ad2a02dbd1202d71a08bac34831f25662d0 (patch)
tree04ff5e2f725343b20dea97e63b4e002e0e88f956 /lisp/url/url-handlers.el
parent42eb249ebd48b8df80357be41364b23a7af4fcf0 (diff)
downloademacs-ffa41ad2a02dbd1202d71a08bac34831f25662d0.tar.gz
Don't require default-directory to end with a slash
* doc/lispref/files.texi (Magic File Names): Document the change in unhandled-file-name-directory. * lisp/url/url-handlers.el (url-handler-unhandled-file-name-directory): Update accordingly. * src/buffer.c (default-directory): Update the docsting. * src/fileio.c (unhandled-file-name-directory): Default to calling `file-name-as-directory' (http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02294.html).
Diffstat (limited to 'lisp/url/url-handlers.el')
-rw-r--r--lisp/url/url-handlers.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/url/url-handlers.el b/lisp/url/url-handlers.el
index 845195e7d4c..a5d9f37b5ee 100644
--- a/lisp/url/url-handlers.el
+++ b/lisp/url/url-handlers.el
@@ -223,7 +223,7 @@ the arguments that would have been passed to OPERATION."
;; which really stands for "/".
;; FIXME: maybe we should check that the host part is "" or "localhost"
;; or some name that represents the local host?
- (or (file-name-directory (url-filename url)) "/")
+ (or (file-name-as-directory (url-filename url)) "/")
;; All other URLs are not expected to be directly accessible from
;; a local process.
nil)))