aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2008-07-18 00:59:10 +0000
committerKatsumi Yamaoka2008-07-18 00:59:10 +0000
commit3c2dbd941620405691c0840aaa915c38ecc72249 (patch)
tree25685ebc1b4e0df87ff34d9081e76ca6a715ba65
parent12f165e92bb57ede754328d3c930946455e6d12b (diff)
downloademacs-3c2dbd941620405691c0840aaa915c38ecc72249.tar.gz
emacs-3c2dbd941620405691c0840aaa915c38ecc72249.zip
(open-tls-stream): Make it work with the 2nd argument BUFFER that is a string
but does not exist as a buffer object, as mentioned in the doc-string.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/tls.el6
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 64c6a97d942..7782a13b41c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-07-18 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * net/tls.el (open-tls-stream): Make it work with the 2nd argument
4 BUFFER that is a string but does not exist as a buffer object, as
5 mentioned in the doc-string.
6
12008-07-17 Chong Yidong <cyd@stupidchicken.com> 72008-07-17 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * simple.el (line-move-visual): Make it a defcustom. 9 * simple.el (line-move-visual): Make it a defcustom.
diff --git a/lisp/net/tls.el b/lisp/net/tls.el
index 3044cb4ab71..64d113ae28e 100644
--- a/lisp/net/tls.el
+++ b/lisp/net/tls.el
@@ -216,7 +216,11 @@ Fourth arg PORT is an integer specifying a port to connect to."
216 (use-temp-buffer (null buffer)) 216 (use-temp-buffer (null buffer))
217 process cmd done) 217 process cmd done)
218 (if use-temp-buffer 218 (if use-temp-buffer
219 (setq buffer (generate-new-buffer " TLS"))) 219 (setq buffer (generate-new-buffer " TLS"))
220 ;; BUFFER is a string but does not exist as a buffer object.
221 (unless (and (get-buffer buffer)
222 (buffer-name (get-buffer buffer)))
223 (generate-new-buffer buffer)))
220 (with-current-buffer buffer 224 (with-current-buffer buffer
221 (message "Opening TLS connection to `%s'..." host) 225 (message "Opening TLS connection to `%s'..." host)
222 (while (and (not done) (setq cmd (pop cmds))) 226 (while (and (not done) (setq cmd (pop cmds)))