diff options
| author | Lars Ingebrigtsen | 2016-02-13 17:00:05 +1100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-02-13 17:00:05 +1100 |
| commit | fb5406aa9ab3dd37220636afe6202afd784c7b33 (patch) | |
| tree | 240355788827d829ba6f16dd6c884e60e98c89e4 | |
| parent | 980122794b41b728e6eb7aaa1054e14f746e1b1c (diff) | |
| download | emacs-fb5406aa9ab3dd37220636afe6202afd784c7b33.tar.gz emacs-fb5406aa9ab3dd37220636afe6202afd784c7b33.zip | |
Remove compat functions from gnus-html.el
* lisp/gnus/gnus-html.el (gnus-html-encode-url-chars): Remove.
| -rw-r--r-- | lisp/gnus/gnus-html.el | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index f3b5b96bfdb..6d6e094cc4f 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -88,27 +88,9 @@ fit these criteria." | |||
| 88 | (define-key map [tab] 'widget-forward) | 88 | (define-key map [tab] 'widget-forward) |
| 89 | map)) | 89 | map)) |
| 90 | 90 | ||
| 91 | (eval-and-compile | ||
| 92 | (defalias 'gnus-html-encode-url-chars | ||
| 93 | (if (fboundp 'browse-url-url-encode-chars) | ||
| 94 | 'browse-url-url-encode-chars | ||
| 95 | (lambda (text chars) | ||
| 96 | "URL-encode the chars in TEXT that match CHARS. | ||
| 97 | CHARS is a regexp-like character alternative (e.g., \"[)$]\")." | ||
| 98 | (let ((encoded-text (copy-sequence text)) | ||
| 99 | (s 0)) | ||
| 100 | (while (setq s (string-match chars encoded-text s)) | ||
| 101 | (setq encoded-text | ||
| 102 | (replace-match (format "%%%x" | ||
| 103 | (string-to-char | ||
| 104 | (match-string 0 encoded-text))) | ||
| 105 | t t encoded-text) | ||
| 106 | s (1+ s))) | ||
| 107 | encoded-text))))) | ||
| 108 | |||
| 109 | (defun gnus-html-encode-url (url) | 91 | (defun gnus-html-encode-url (url) |
| 110 | "Encode URL." | 92 | "Encode URL." |
| 111 | (gnus-html-encode-url-chars url "[)$ ]")) | 93 | (browse-url-url-encode-chars url "[)$ ]")) |
| 112 | 94 | ||
| 113 | (defun gnus-html-cache-expired (url ttl) | 95 | (defun gnus-html-cache-expired (url ttl) |
| 114 | "Check if URL is cached for more than TTL." | 96 | "Check if URL is cached for more than TTL." |