+2011-08-12 Sam Steingold <sds@gnu.org>
+
+ * gnus-score.el (gnus-score-find-alist): Keep the score files already
+ in the reverse order to avoid modifying the cache with `nreverse'.
+ (gnus-all-score-files): Do not modify the value returned by
+ `gnus-score-find-alist' because it lives in a cache variable.
+ (gnus-current-home-score-file): No need to `nreverse' the return value
+ of `gnus-score-find-alist', it is already in the correct order.
+
2011-08-11 Andrew Cohen <cohen@andy.bu.edu>
* nnimap.el (nnimap-transform-headers): BODYSTRUCTURE for messages of
;; handle the multiple match alist
(while alist
(when (string-match (caar alist) group)
- (setq score-files
- (nconc score-files (copy-sequence (cdar alist)))))
+ (setq score-files (append (cdar alist) score-files)))
(setq alist (cdr alist)))
(setq alist gnus-score-file-single-match-alist)
;; handle the single match alist
;; and score-files is still nil. -sj
;; this can be construed as a "stop searching here" feature :>
;; and used to simplify regexps in the single-alist
- (setq score-files
- (nconc score-files (copy-sequence (cdar alist))))
+ (setq score-files (append (cdar alist) score-files))
(setq alist nil))
(setq alist (cdr alist)))
;; cache the score files
(when gnus-score-use-all-scores
;; Get the initial score files for this group.
(when funcs
- (setq score-files (nreverse (gnus-score-find-alist group))))
+ (setq score-files (copy-list (gnus-score-find-alist group))))
;; Add any home adapt files.
(let ((home (gnus-home-score-file group t)))
(when home
(defun gnus-current-home-score-file (group)
"Return the \"current\" regular score file."
- (car (nreverse (gnus-score-find-alist group))))
+ (car (gnus-score-find-alist group)))
;;;
;;; Score decays