(nntp-open-server): Return whether the open was successful or not.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 17 Sep 2010 20:58:40 +0000 (22:58 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 17 Sep 2010 20:58:40 +0000 (22:58 +0200)
lisp/ChangeLog
lisp/nntp.el

index 3691946..6fd81fb 100644 (file)
@@ -1,5 +1,8 @@
 2010-09-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * nntp.el (nntp-open-server): Return whether the open was successful or
+       not.
+
        * gnus-sum.el (gnus-summary-first-subject): Have `unseen-or-unread'
        select an unread unseen article first.
 
index 3cdd630..59f803d 100644 (file)
@@ -1014,7 +1014,8 @@ command whose response triggered the error."
     (unless (assq 'nntp-address defs)
       (setq defs (append defs (list (list 'nntp-address server)))))
     (nnoo-change-server 'nntp server defs)
-    (unless connectionless
+    (if connectionless
+       t
       (or (nntp-find-connection nntp-server-buffer)
          (nntp-open-connection nntp-server-buffer)))))