diff options
| author | Tassilo Horn | 2014-11-05 12:10:20 +0100 |
|---|---|---|
| committer | Tassilo Horn | 2014-11-05 12:10:20 +0100 |
| commit | eecd19cf095e53a99734000b9eca4d82b7a4531d (patch) | |
| tree | 58fa968ab5515790318815defa9ad52977d7f8df | |
| parent | 5e28461482115baee4d1f28f514a322a50774b75 (diff) | |
| download | emacs-eecd19cf095e53a99734000b9eca4d82b7a4531d.tar.gz emacs-eecd19cf095e53a99734000b9eca4d82b7a4531d.zip | |
Fix void-function string-trim error
* lisp/net/eww.el (subr-x): Require subr-x because eww uses
string-trim.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/eww.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 66c6c472991..92062a1c4c7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-11-05 Tassilo Horn <tsdh@gnu.org> | ||
| 2 | |||
| 3 | * net/eww.el (subr-x): Require subr-x because eww uses | ||
| 4 | string-trim. | ||
| 5 | |||
| 1 | 2014-11-05 Daiki Ueno <ueno@gnu.org> | 6 | 2014-11-05 Daiki Ueno <ueno@gnu.org> |
| 2 | 7 | ||
| 3 | * epg.el (epg-context): Add new slot ERROR-OUTPUT. | 8 | * epg.el (epg-context): Add new slot ERROR-OUTPUT. |
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index d23b71cf62a..c5e79a3e866 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | (require 'url) | 30 | (require 'url) |
| 31 | (require 'url-queue) | 31 | (require 'url-queue) |
| 32 | (require 'mm-url) | 32 | (require 'mm-url) |
| 33 | (require 'subr-x) ;; for string-trim | ||
| 33 | 34 | ||
| 34 | (defgroup eww nil | 35 | (defgroup eww nil |
| 35 | "Emacs Web Wowser" | 36 | "Emacs Web Wowser" |
| @@ -166,9 +167,9 @@ word(s) will be searched for via `eww-search-prefix'." | |||
| 166 | (user-error "FTP is not supported.")) | 167 | (user-error "FTP is not supported.")) |
| 167 | (t | 168 | (t |
| 168 | (if (and (= (length (split-string url)) 1) | 169 | (if (and (= (length (split-string url)) 1) |
| 169 | (or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url)) | 170 | (or (and (not (string-match-p "\\`[\"\'].*[\"\']\\'" url)) |
| 170 | (> (length (split-string url "[.:]")) 1)) | 171 | (> (length (split-string url "[.:]")) 1)) |
| 171 | (string-match eww-local-regex url))) | 172 | (string-match eww-local-regex url))) |
| 172 | (progn | 173 | (progn |
| 173 | (unless (string-match-p "\\`[a-zA-Z][-a-zA-Z0-9+.]*://" url) | 174 | (unless (string-match-p "\\`[a-zA-Z][-a-zA-Z0-9+.]*://" url) |
| 174 | (setq url (concat "http://" url))) | 175 | (setq url (concat "http://" url))) |