diff options
| author | Glenn Morris | 2012-02-17 00:19:12 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-02-17 00:19:12 -0800 |
| commit | 95ddf44200640d9b1ec9d52768044e709a860eec (patch) | |
| tree | 22d62116692746f137a12d9683e474991197aa0c | |
| parent | 0fd2c9a35bf08acb70f047835b89feef14469e0b (diff) | |
| download | emacs-95ddf44200640d9b1ec9d52768044e709a860eec.tar.gz emacs-95ddf44200640d9b1ec9d52768044e709a860eec.zip | |
* lisp/net/socks.el: Require network-stream.
Fixes: debbugs:10599
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/net/socks.el | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e2e45bf1535..4479ee22790 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-02-17 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * net/socks.el: Require network-stream. (Bug#10599) | ||
| 4 | |||
| 1 | 2012-02-17 Kenichi Handa <handa@m17n.org> | 5 | 2012-02-17 Kenichi Handa <handa@m17n.org> |
| 2 | 6 | ||
| 3 | * international/charprop.el: | 7 | * international/charprop.el: |
diff --git a/lisp/net/socks.el b/lisp/net/socks.el index b9431bdeed7..3c94e7d1b22 100644 --- a/lisp/net/socks.el +++ b/lisp/net/socks.el | |||
| @@ -35,6 +35,8 @@ | |||
| 35 | (require 'wid-edit)) | 35 | (require 'wid-edit)) |
| 36 | (require 'custom) | 36 | (require 'custom) |
| 37 | 37 | ||
| 38 | ;; FIXME this is bad practice, and who is it for anyway, since Emacs | ||
| 39 | ;; has split-string since at least 21.1. | ||
| 38 | (if (not (fboundp 'split-string)) | 40 | (if (not (fboundp 'split-string)) |
| 39 | (defun split-string (string &optional pattern) | 41 | (defun split-string (string &optional pattern) |
| 40 | "Return a list of substrings of STRING which are separated by PATTERN. | 42 | "Return a list of substrings of STRING which are separated by PATTERN. |
| @@ -335,10 +337,17 @@ If PATTERN is omitted, it defaults to \"[ \\f\\t\\n\\r\\v]+\"." | |||
| 335 | 337 | ||
| 336 | (declare-function socks-original-open-network-stream "socks") ; fset | 338 | (declare-function socks-original-open-network-stream "socks") ; fset |
| 337 | 339 | ||
| 340 | ;; FIXME this is a terrible idea. | ||
| 341 | ;; It is not even compatible with the argument spec of open-network-stream | ||
| 342 | ;; in 24.1. If this is really necessary, open-network-stream | ||
| 343 | ;; could get a wrapper hook, or defer to open-network-stream-function. | ||
| 344 | |||
| 338 | (defvar socks-override-functions nil | 345 | (defvar socks-override-functions nil |
| 339 | "*Whether to overwrite the open-network-stream function with the SOCKSified | 346 | "*Whether to overwrite the open-network-stream function with the SOCKSified |
| 340 | version.") | 347 | version.") |
| 341 | 348 | ||
| 349 | (require 'network-stream) | ||
| 350 | |||
| 342 | (if (fboundp 'socks-original-open-network-stream) | 351 | (if (fboundp 'socks-original-open-network-stream) |
| 343 | nil ; Do nothing, we've been here already | 352 | nil ; Do nothing, we've been here already |
| 344 | (defalias 'socks-original-open-network-stream | 353 | (defalias 'socks-original-open-network-stream |