X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=lisp%2Fgnus-start.el;h=53ae6e1a8a8293f48296be81147ea8ef51a840b8;hp=cfedeb16a4b9d6bc9a167790c070e8e256e129d2;hb=bbe68edb313e02acb4557e5cc4ff2f87a41ca66c;hpb=f6234873d0f9a0ee9b26beab123cf4e9d77099c8 diff --git a/lisp/gnus-start.el b/lisp/gnus-start.el index cfedeb16a..53ae6e1a8 100644 --- a/lisp/gnus-start.el +++ b/lisp/gnus-start.el @@ -763,8 +763,8 @@ prompt the user for the name of an NNTP server to use." ;; Add "native" to gnus-predefined-server-alist just to have a ;; name for the native select method. (when gnus-select-method - (push (cons "native" gnus-select-method) - gnus-predefined-server-alist)) + (add-to-list 'gnus-predefined-server-alist + (cons "native" gnus-select-method))) (if gnus-agent (gnus-agentize)) @@ -1504,8 +1504,6 @@ backend check whether the group actually exists." ;; Return the new active info. active))))) -(defvar gnus-propagate-marks) ; gnus-sum - (defun gnus-get-unread-articles-in-group (info active &optional update) (when (and info active) ;; Allow the backend to update the info in the group. @@ -1515,13 +1513,6 @@ backend check whether the group actually exists." (gnus-info-group info))))) (gnus-activate-group (gnus-info-group info) nil t)) - ;; Allow backends to update marks, - (when gnus-propagate-marks - (let ((method (inline (gnus-find-method-for-group - (gnus-info-group info))))) - (when (gnus-check-backend-function 'request-marks (car method)) - (gnus-request-marks info method)))) - (let* ((range (gnus-info-read info)) (num 0)) @@ -2306,13 +2297,14 @@ If FORCE is non-nil, the .newsrc file is read." (gnus-convert-old-newsrc) (gnus-clean-old-newsrc)))) -(defun gnus-clean-old-newsrc () +(defun gnus-clean-old-newsrc (&optional force) (when gnus-newsrc-file-version - (when (< (gnus-continuum-version gnus-newsrc-file-version) - (gnus-continuum-version "Ma Gnus v0.02")) + (when (or force + (< (gnus-continuum-version gnus-newsrc-file-version) + (gnus-continuum-version "Ma Gnus v0.03"))) ;; Remove old `exist' marks from old nnimap groups. (dolist (info (cdr gnus-newsrc-alist)) - (let ((exist (assoc 'exist (gnus-info-marks info)))) + (let ((exist (assoc 'unexist (gnus-info-marks info)))) (when exist (gnus-info-set-marks info (delete exist (gnus-info-marks info)))))))))