* net/eww.el (eww): Trim URL with `string-trim'.
Suggested by Vibhav Pant <vibhavp@gmail.com>.
This commit is contained in:
parent
15eb2ec114
commit
f3e25d69b0
2 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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."))
|
||||
|
|
Loading…
Add table
Reference in a new issue