From f98a5bdbafa5c3ab44a28a367b56ea06d05f226e Mon Sep 17 00:00:00 2001 From: Patrick O'Leary Date: Tue, 2 Aug 2016 12:47:28 -0500 Subject: [PATCH] Fix opening docs in eww in Windows (again) With the `file://` prefix, eww thinks that you're trying to open an FTP connection. However, with `file:///` (note the additional slash), everything works fine. --- helm-dash.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm-dash.el b/helm-dash.el index 679f9a2..65f72b7 100644 --- a/helm-dash.el +++ b/helm-dash.el @@ -458,7 +458,7 @@ candidate opts." (list (car docset) row))) (defun helm-dash-result-url (docset-name filename &optional anchor) - "Return the full, absolute URL to documentation: either a file:// URL joining + "Return the full, absolute URL to documentation: either a file:/// URL joining DOCSET-NAME, FILENAME & ANCHOR with sanitization of spaces or a http(s):// URL formed as-is if FILENAME is a full HTTP(S) URL." (let ((path (format "%s%s" filename (if anchor (format "#%s" anchor) "")))) @@ -468,7 +468,7 @@ formed as-is if FILENAME is a full HTTP(S) URL." " " "%20" (concat - "file://" + "file:///" (expand-file-name "Contents/Resources/Documents/" (helm-dash-docset-path docset-name)) path)))))