diff options
| author | Katsumi Yamaoka | 2010-08-14 10:50:20 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-08-14 10:50:20 +0000 |
| commit | f5a62bb4a36e413f9f9eb8f30e932b0919eeceaf (patch) | |
| tree | efaa41800f07e88677a48e61a50872b03758f9fb | |
| parent | 8c33070780a535bf499b28e0d2350300e07c90c5 (diff) | |
| download | emacs-f5a62bb4a36e413f9f9eb8f30e932b0919eeceaf.tar.gz emacs-f5a62bb4a36e413f9f9eb8f30e932b0919eeceaf.zip | |
Ammended for bug fix on the loader nunion.
From Ted Zlatanov <tzz@lifelogs.com>.
* (gnus-sync-save): Keep unknown groups in `gnus-sync-newsrc-loader'.
| -rw-r--r-- | lisp/gnus/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sync.el | 17 |
2 files changed, 11 insertions, 8 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 0d3cfd64a60..eef77da20ab 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | 2010-08-13 Teodor Zlatanov <tzz@lifelogs.com> | 5 | 2010-08-13 Teodor Zlatanov <tzz@lifelogs.com> |
| 6 | 6 | ||
| 7 | Doc fixes and keep unknown groups. | 7 | Doc fixes and keep unknown groups (ammended for nunion bug fix). |
| 8 | 8 | ||
| 9 | * gnus-sync.el: Fix docs. | 9 | * gnus-sync.el: Fix docs. |
| 10 | (gnus-sync-save): Keep unknown groups in `gnus-sync-newsrc-loader'. | 10 | (gnus-sync-save): Keep unknown groups in `gnus-sync-newsrc-loader'. |
diff --git a/lisp/gnus/gnus-sync.el b/lisp/gnus/gnus-sync.el index c704ed73ff8..e68b3d82dbd 100644 --- a/lisp/gnus/gnus-sync.el +++ b/lisp/gnus/gnus-sync.el | |||
| @@ -105,7 +105,7 @@ synchronized, I believe). Also see `gnus-variable-list'." | |||
| 105 | (cons offset (nth offset entry))) | 105 | (cons offset (nth offset entry))) |
| 106 | gnus-sync-newsrc-offsets)))) | 106 | gnus-sync-newsrc-offsets)))) |
| 107 | (gnus-sync-newsrc-loader | 107 | (gnus-sync-newsrc-loader |
| 108 | (nunion gnus-sync-newsrc-loader | 108 | (nunion loader |
| 109 | (set-difference gnus-sync-newsrc-loader loader :key 'car) | 109 | (set-difference gnus-sync-newsrc-loader loader :key 'car) |
| 110 | :key 'car))) | 110 | :key 'car))) |
| 111 | 111 | ||
| @@ -128,13 +128,16 @@ synchronized, I believe). Also see `gnus-variable-list'." | |||
| 128 | gnus-sync-global-vars)) | 128 | gnus-sync-global-vars)) |
| 129 | variable) | 129 | variable) |
| 130 | (while variables | 130 | (while variables |
| 131 | (when (and (boundp (setq variable (pop variables))) | 131 | (if (and (boundp (setq variable (pop variables))) |
| 132 | (symbol-value variable)) | 132 | (symbol-value variable)) |
| 133 | (princ "\n(setq ") | 133 | (progn |
| 134 | (princ (symbol-name variable)) | 134 | (princ "\n(setq ") |
| 135 | (princ " '") | 135 | (princ (symbol-name variable)) |
| 136 | (prin1 (symbol-value variable)) | 136 | (princ " '") |
| 137 | (princ ")\n")))) | 137 | (prin1 (symbol-value variable)) |
| 138 | (princ ")\n")) | ||
| 139 | (princ "\n;;; skipping empty variable ") | ||
| 140 | (princ (symbol-name variable))))) | ||
| 138 | (gnus-message | 141 | (gnus-message |
| 139 | 7 | 142 | 7 |
| 140 | "gnus-sync: stored variables %s and %d groups in %s" | 143 | "gnus-sync: stored variables %s and %d groups in %s" |