>From 017c749f5590e0e564d9dab2de7dabd60766318e Mon Sep 17 00:00:00 2001 From: Ivan Kanis Date: Mon, 24 Jun 2013 08:06:08 +0200 Subject: [PATCH 1/7] fix opening file:/// URL --- emacs/gnus/eww.el | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/gnus/eww.el b/emacs/gnus/eww.el index 959fc4d..53fa882 100644 --- a/emacs/gnus/eww.el +++ b/emacs/gnus/eww.el @@ -106,8 +106,9 @@ It will be used when emacs runs on neither Windows or Mac." (> (length (split-string url "\\.")) 1)) (unless (string-match-p "\\`[a-zA-Z][-a-zA-Z0-9+.]*://" url) (setq url (concat "http://" url))) - (setq url (concat eww-search-prefix - (replace-regexp-in-string " " "+" url)))) + (unless (string-match-p "^file:" url) + (setq url (concat eww-search-prefix + (replace-regexp-in-string " " "+" url))))) (url-retrieve url 'eww-render (list url))) ;;;###autoload -- 1.7.1