# HG changeset patch # User Katsumi Yamaoka # Date 1281783020 0 # Node ID e253995f955c6c25eb52b000f38fb8f7bc7908d1 # Parent 729aca322fce73fb5a80a42bb161700650a7bdce Ammended for bug fix on the loader nunion. From Ted Zlatanov . * (gnus-sync-save): Keep unknown groups in `gnus-sync-newsrc-loader'. diff -r 729aca322fce -r e253995f955c lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Sat Aug 14 10:45:32 2010 +0000 +++ b/lisp/gnus/ChangeLog Sat Aug 14 10:50:20 2010 +0000 @@ -4,7 +4,7 @@ 2010-08-13 Teodor Zlatanov - 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'. diff -r 729aca322fce -r e253995f955c lisp/gnus/gnus-sync.el --- a/lisp/gnus/gnus-sync.el Sat Aug 14 10:45:32 2010 +0000 +++ b/lisp/gnus/gnus-sync.el Sat Aug 14 10:50:20 2010 +0000 @@ -105,7 +105,7 @@ (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 @@ 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"