Commit f4018140 authored by Kenjiro NAKAYAMA's avatar Kenjiro NAKAYAMA Committed by Lars Magne Ingebrigtsen
Browse files

* net/eww.el (eww): Support single/double quote for search.

parent 73dbf960
2014-01-05 Kenjiro NAKAYAMA <nakayamakenjiro@gmail.com>
* net/eww.el (eww): Support single/double quote for search.
2014-01-05 Paul Eggert <eggert@cs.ucla.edu>
Fix misspelling of 'chinese' in rx (Bug#16237).
......
......@@ -157,8 +157,9 @@ word(s) will be searched for via `eww-search-prefix'."
(user-error "FTP is not supported."))
(t
(if (and (= (length (split-string url)) 1)
(or (> (length (split-string url "\\.")) 1)
(string-match eww-local-regex url)))
(or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url))
(> (length (split-string url "\\.")) 1))
(string-match eww-local-regex url)))
(progn
(unless (string-match-p "\\`[a-zA-Z][-a-zA-Z0-9+.]*://" url)
(setq url (concat "http://" url)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment