emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3fb7881: nnimap.el: Handle nil arg to nnimap-reques


From: Katsumi Yamaoka
Subject: [Emacs-diffs] master 3fb7881: nnimap.el: Handle nil arg to nnimap-request-group
Date: Sun, 06 Sep 2015 12:48:01 +0000

branch: master
commit 3fb7881a0e320f380203c0f2dd16dfc7189af1e9
Author: Eric Abrahamsen <address@hidden>
Commit: Katsumi Yamaoka <address@hidden>

    nnimap.el:  Handle nil arg to nnimap-request-group
    
    * lisp/gnus/nnimap.el (nnimap-request-group):  Handle nil "info" arg.
    This arg isn't always passed in, check it's not nil before making it
    into a list.  The active arg will also be nil if the group is new,
    check for that.
---
 lisp/gnus/nnimap.el |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 20ba0a3..ac228f9 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -807,6 +807,7 @@ textual parts.")
                     nil
                   group)
                 server))
+       (info (when info (list info)))
        active)
     (with-current-buffer nntp-server-buffer
       (when result
@@ -814,10 +815,11 @@ textual parts.")
                  (not (setq active
                             (nth 2 (assoc group nnimap-current-infos)))))
          (let ((sequences (nnimap-retrieve-group-data-early
-                           server (list info))))
-           (nnimap-finish-retrieve-group-infos server (list info) sequences
+                           server info)))
+           (nnimap-finish-retrieve-group-infos server info sequences
                                                t)
            (setq active (nth 2 (assoc group nnimap-current-infos)))))
+       (setq active (or active '(0 . 1)))
        (erase-buffer)
        (insert (format "211 %d %d %d %S\n"
                        (- (cdr active) (car active))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]