summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Zlatanov <tzz@lifelogs.com>2014-11-04 11:31:33 -0500
committerTed Zlatanov <tzz@lifelogs.com>2014-11-04 11:31:33 -0500
commitf3e25d69b0fc9e3a594e2087b30f610514db39b1 (patch)
tree6cd4f03a28485df64afecf4246a51cd5eb5bcb89
parent15eb2ec114d3076a38438de13e8af878f5e3d950 (diff)
downloademacs-f3e25d69b0fc9e3a594e2087b30f610514db39b1.tar.gz
* net/eww.el (eww): Trim URL with `string-trim'.
Suggested by Vibhav Pant <vibhavp@gmail.com>.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/eww.el1
2 files changed, 6 insertions, 0 deletions
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 <tzz@lifelogs.com>
+
+ * net/eww.el (eww): Trim URL with `string-trim'.
+ Suggested by Vibhav Pant <vibhavp@gmail.com>.
+
2014-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
* 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."))