]> git.eshelyaron.com Git - emacs.git/commitdiff
proto-stream.el (proto-stream-open-tls): Return nil if we don't get any stream.
authorGnus developers <ding@gnus.org>
Mon, 6 Dec 2010 23:27:17 +0000 (23:27 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 6 Dec 2010 23:27:17 +0000 (23:27 +0000)
gnus.texi (Server Commands): Point to the rest of the server commands.

doc/misc/ChangeLog
doc/misc/gnus.texi
lisp/gnus/ChangeLog
lisp/gnus/proto-stream.el

index 468a68b0a80f723370dc5ec53b306c29dd1923f9..b1b3b44076719804b25fe96cc495554fbbfa9e9a 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-06  Tassilo Horn  <tassilo@member.fsf.org>
+
+       * gnus.texi (Server Commands): Point to the rest of the server
+       commands.
+
 2010-12-04  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus.texi (Paging the Article): Note the reverse meanings of `C-u C-u
index 5b8a0b456831127c80f3ee2a76a584b0663131d1..2df6d90cc07acadb0f1a1fac1531585b5cdc7608 100644 (file)
@@ -13885,6 +13885,9 @@ hence getting a correct total article count.
 
 @end table
 
+Some more commands for closing, disabling, and re-opening servers are
+listed in @ref{Unavailable Servers}.
+
 
 @node Example Methods
 @subsection Example Methods
index ef4a7637b6dde894fdd33902cec74506762aed48..0e34fbc5f647fd9df1226bbbfd82da0792cb8cb9 100644 (file)
@@ -1,5 +1,8 @@
 2010-12-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * proto-stream.el (proto-stream-open-tls): Return nil if we don't get
+       any stream.
+
        * shr.el (shr-tag-font): Colorize the region.
        (shr-tag-body): Ditto.
        (shr-tag-font): Actually let the styles be inherited instead of
index fe764dcf01dd03bf6271b0f6c3cf43ae41ea32dd..6c90f3a112dbb5569a7ed25a039e41596576eeaf 100644 (file)
@@ -219,16 +219,18 @@ command to switch on STARTTLS otherwise."
                        'open-gnutls-stream
                      'open-tls-stream)
                    name buffer host service)))
-      ;; If we're using tls.el, we have to delete the output from
-      ;; openssl/gnutls-cli.
-      (unless (fboundp 'open-gnutls-stream)
-       (proto-stream-get-response
-        stream start (proto-stream-eoc parameters))
-       (goto-char (point-min))
-       (when (re-search-forward (proto-stream-eoc parameters) nil t)
-         (goto-char (match-beginning 0))
-         (delete-region (point-min) (line-beginning-position))))
-      (proto-stream-capability-open start stream parameters))))
+      (if (null stream)
+         nil
+       ;; If we're using tls.el, we have to delete the output from
+       ;; openssl/gnutls-cli.
+       (unless (fboundp 'open-gnutls-stream)
+         (proto-stream-get-response
+          stream start (proto-stream-eoc parameters))
+         (goto-char (point-min))
+         (when (re-search-forward (proto-stream-eoc parameters) nil t)
+           (goto-char (match-beginning 0))
+           (delete-region (point-min) (line-beginning-position))))
+       (proto-stream-capability-open start stream parameters)))))
 
 (defun proto-stream-open-shell (name buffer host service parameters)
   (proto-stream-capability-open