but does not exist as a buffer object, as mentioned in the doc-string.
+2008-07-18 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * net/tls.el (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.
+
2008-07-17 Chong Yidong <cyd@stupidchicken.com>
* simple.el (line-move-visual): Make it a defcustom.
(use-temp-buffer (null buffer))
process cmd done)
(if use-temp-buffer
- (setq buffer (generate-new-buffer " TLS")))
+ (setq buffer (generate-new-buffer " TLS"))
+ ;; BUFFER is a string but does not exist as a buffer object.
+ (unless (and (get-buffer buffer)
+ (buffer-name (get-buffer buffer)))
+ (generate-new-buffer buffer)))
(with-current-buffer buffer
(message "Opening TLS connection to `%s'..." host)
(while (and (not done) (setq cmd (pop cmds)))