aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Engster2013-07-10 22:17:07 +0000
committerKatsumi Yamaoka2013-07-10 22:17:07 +0000
commit3d70c5cfa9aae030c5ab8e8e612319a6645cf659 (patch)
treea61746136f8c66c700575271ee16e08a7bced8b2
parent4647c173e516a76fe89def783fd156a88aa4ee03 (diff)
downloademacs-3d70c5cfa9aae030c5ab8e8e612319a6645cf659.tar.gz
emacs-3d70c5cfa9aae030c5ab8e8e612319a6645cf659.zip
gnus-start.el (gnus-clean-old-newsrc): Always remove 'unexist' marks if `gnus-newsrc-file-version' does not match `gnus-version'. This fixes a bug in Emacs trunk where the 'unexist' marks were always removed at startup because "Gnus v5.13" was considered smaller than "Ma Gnus v0.03".
-rw-r--r--lisp/gnus/ChangeLog8
-rw-r--r--lisp/gnus/gnus-start.el5
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 7d4d9a0d667..006b415b180 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,11 @@
12013-07-10 David Engster <deng@randomsample.de>
2
3 * gnus-start.el (gnus-clean-old-newsrc): Always remove 'unexist' marks
4 if `gnus-newsrc-file-version' does not match `gnus-version'. This
5 fixes a bug in Emacs trunk where the 'unexist' marks were always
6 removed at startup because "Gnus v5.13" was considered smaller than "Ma
7 Gnus v0.03".
8
12013-07-10 Tassilo Horn <tsdh@gnu.org> 92013-07-10 Tassilo Horn <tsdh@gnu.org>
2 10
3 * gnus.el (gnus-summary-line-format): Reference 11 * gnus.el (gnus-summary-line-format): Reference
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 084af884930..94803800e0b 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -2314,8 +2314,9 @@ If FORCE is non-nil, the .newsrc file is read."
2314 (gnus-info-set-marks 2314 (gnus-info-set-marks
2315 info (delete exist (gnus-info-marks info)))))) 2315 info (delete exist (gnus-info-marks info))))))
2316 (when (or force 2316 (when (or force
2317 (< (gnus-continuum-version gnus-newsrc-file-version) 2317 (not (string= gnus-newsrc-file-version gnus-version)))
2318 (gnus-continuum-version "Ma Gnus v0.03"))) 2318 (message (concat "Removing unexist marks because newsrc "
2319 "version does not match Gnus version."))
2319 ;; Remove old `exist' marks from old nnimap groups. 2320 ;; Remove old `exist' marks from old nnimap groups.
2320 (dolist (info (cdr gnus-newsrc-alist)) 2321 (dolist (info (cdr gnus-newsrc-alist))
2321 (let ((exist (assoc 'unexist (gnus-info-marks info)))) 2322 (let ((exist (assoc 'unexist (gnus-info-marks info))))