From: Ted Zlatanov Date: Tue, 4 Nov 2014 16:31:33 +0000 (-0500) Subject: * net/eww.el (eww): Trim URL with `string-trim'. X-Git-Tag: emacs-25.0.90~2635^2~571 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f3e25d69b0fc9e3a594e2087b30f610514db39b1;p=emacs.git * net/eww.el (eww): Trim URL with `string-trim'. Suggested by Vibhav Pant . --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 58cdd2093ca..e849a1c0b1f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-11-04 Teodor Zlatanov + + * net/eww.el (eww): Trim URL with `string-trim'. + Suggested by Vibhav Pant . + 2014-11-03 Lars Magne Ingebrigtsen * net/eww.el (eww-score-readability): Don't count comments positively. diff --git a/lisp/net/eww.el b/lisp/net/eww.el index c9bb903670e..d23b71cf62a 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -160,6 +160,7 @@ See also `eww-form-checkbox-selected-symbol'." If the input doesn't look like an URL or a domain name, the word(s) will be searched for via `eww-search-prefix'." (interactive "sEnter URL or keywords: ") + (setq url (string-trim url)) (cond ((string-match-p "\\`file:/" url)) ((string-match-p "\\`ftp://" url) (user-error "FTP is not supported."))