]> git.eshelyaron.com Git - emacs.git/commitdiff
Ammended for bug fix on the loader nunion.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Sat, 14 Aug 2010 10:50:20 +0000 (10:50 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sat, 14 Aug 2010 10:50:20 +0000 (10:50 +0000)
From Ted Zlatanov <tzz@lifelogs.com>.

* (gnus-sync-save): Keep unknown groups in `gnus-sync-newsrc-loader'.

lisp/gnus/ChangeLog
lisp/gnus/gnus-sync.el

index 0d3cfd64a609923b6abfdfd525babe0d94492e6b..eef77da20ab637e0097f10d7cd9c8b9a7a99e555 100644 (file)
@@ -4,7 +4,7 @@
 
 2010-08-13  Teodor Zlatanov  <tzz@lifelogs.com>
 
-       Doc fixes and keep unknown groups.
+       Doc fixes and keep unknown groups (ammended for nunion bug fix).
 
        * gnus-sync.el: Fix docs.
        (gnus-sync-save): Keep unknown groups in `gnus-sync-newsrc-loader'.
index c704ed73ff8d37fd7ab5f45f9dec8136d87ddcc8..e68b3d82dbd23e2c6d908d335278bca66b55456d 100644 (file)
@@ -105,7 +105,7 @@ synchronized, I believe).  Also see `gnus-variable-list'."
                                           (cons offset (nth offset entry)))
                                         gnus-sync-newsrc-offsets))))
            (gnus-sync-newsrc-loader
-            (nunion gnus-sync-newsrc-loader
+            (nunion loader
                     (set-difference gnus-sync-newsrc-loader loader :key 'car)
                     :key 'car)))
 
@@ -128,13 +128,16 @@ synchronized, I believe).  Also see `gnus-variable-list'."
                                     gnus-sync-global-vars))
                    variable)
               (while variables
-                (when (and (boundp (setq variable (pop variables)))
+                (if (and (boundp (setq variable (pop variables)))
                            (symbol-value variable))
-                  (princ "\n(setq ")
-                  (princ (symbol-name variable))
-                  (princ " '")
-                  (prin1 (symbol-value variable))
-                  (princ ")\n"))))
+                    (progn
+                      (princ "\n(setq ")
+                      (princ (symbol-name variable))
+                      (princ " '")
+                      (prin1 (symbol-value variable))
+                      (princ ")\n"))
+                  (princ "\n;;; skipping empty variable ")
+                  (princ (symbol-name variable)))))
             (gnus-message
              7
              "gnus-sync: stored variables %s and %d groups in %s"