X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fgnus-spec.el;h=25d67fb28df96fd076e6700196fe9ed73ff7582d;hb=838052b6ee3f4478a1ed5588ef7467d36f391d64;hp=435c02084591608181e27dce17e3b02d399b5fff;hpb=f508e94b57181ffe5d757236d43a2aea661ca56e;p=elisp%2Fgnus.git- diff --git a/lisp/gnus-spec.el b/lisp/gnus-spec.el index 435c020..25d67fb 100644 --- a/lisp/gnus-spec.el +++ b/lisp/gnus-spec.el @@ -136,7 +136,7 @@ text properties. This is only needed on XEmacs, as FSF Emacs does this anyway." (gnus-byte-code 'gnus-group-line-format-spec)) (defvar gnus-format-specs - `((group ("%M\%S\%p\%P\%5y: %(%g%)%l\n" ,gnus-group-line-format-spec)) + `((group ("%M\%S\%p\%P\%5y: %(%g%)\n" ,gnus-group-line-format-spec)) (summary-dummy ("* %(: :%) %S\n" ,gnus-summary-dummy-line-format-spec)) (summary ("%U%R%z%I%(%[%4L: %-23,23f%]%) %s\n" @@ -234,6 +234,14 @@ text properties. This is only needed on XEmacs, as FSF Emacs does this anyway." gnus-format-specs-compiled nil) (gnus-product-variable-touch 'gnus-format-specs 'gnus-format-specs-compiled)) + ;; Flush the group format spec cache if there's the grouplens stuff. + (let ((spec (assq 'group gnus-format-specs))) + (when (and (memq 'group types) + (string-match " gnus-tmp-grouplens[ )]" + (gnus-prin1-to-string (cdr spec)))) + (setq gnus-format-specs (delq spec gnus-format-specs) + spec (assq 'group gnus-format-specs-compiled) + gnus-format-specs-compiled (delq spec gnus-format-specs-compiled)))) ;; Go through all the formats and see whether they need updating. (let (type val) @@ -646,6 +654,9 @@ are supported for %s." ?s))) ;; Find the specification from `spec-alist'. ((setq elem (cdr (assq (or extended-spec spec) spec-alist)))) + ;; We used to use "%l" for displaying the grouplens score. + ((eq spec ?l) + (setq elem '("" ?s))) (t (setq elem '("*" ?s)))) (setq elem-type (cadr elem))