aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-02-17 00:19:12 -0800
committerGlenn Morris2012-02-17 00:19:12 -0800
commit95ddf44200640d9b1ec9d52768044e709a860eec (patch)
tree22d62116692746f137a12d9683e474991197aa0c
parent0fd2c9a35bf08acb70f047835b89feef14469e0b (diff)
downloademacs-95ddf44200640d9b1ec9d52768044e709a860eec.tar.gz
emacs-95ddf44200640d9b1ec9d52768044e709a860eec.zip
* lisp/net/socks.el: Require network-stream.
Fixes: debbugs:10599
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/socks.el9
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 @@
12012-02-17 Glenn Morris <rgm@gnu.org>
2
3 * net/socks.el: Require network-stream. (Bug#10599)
4
12012-02-17 Kenichi Handa <handa@m17n.org> 52012-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
340version.") 347version.")
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