* gnus.el (gnus-tmp-grouplens): Remove.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 27 Jan 2004 12:08:56 +0000 (12:08 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 27 Jan 2004 12:08:56 +0000 (12:08 +0000)
(gnus-summary-line-format): Remove grouplens.

* gnus-group.el (gnus-group-line-format): Ditto.

* gnus-spec.el (gnus-format-specs): Ditto.
(gnus-update-format-specifications): Flush the group format spec cache if
 there's the grouplens stuff.
 (gnus-parse-simple-format): Replace %l with the empty string.

lisp/ChangeLog
lisp/gnus-group.el
lisp/gnus-spec.el
lisp/gnus.el

index 9dfa72a..05ee898 100644 (file)
@@ -1,3 +1,15 @@
+2004-01-27  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus.el (gnus-tmp-grouplens): Remove.
+       (gnus-summary-line-format): Remove grouplens.
+
+       * gnus-group.el (gnus-group-line-format): Ditto.
+
+       * gnus-spec.el (gnus-format-specs): Ditto.
+       (gnus-update-format-specifications): Flush the group format spec
+       cache if there's the grouplens stuff.
+       (gnus-parse-simple-format): Replace %l with the empty string.
+
 2004-01-27  Steve Youngs  <sryoungs@bigpond.net.au>
 
        * gnus-spec.el (gnus-parse-simple-format): Fix setq value
index 88f0c05..9c6af63 100644 (file)
@@ -145,7 +145,7 @@ list."
                         (function-item gnus-group-sort-by-rank)
                         (function :tag "other" nil))))
 
-(defcustom gnus-group-line-format "%M\%S\%p\%P\%5y:%B%(%g%)%l %O\n"
+(defcustom gnus-group-line-format "%M\%S\%p\%P\%5y:%B%(%g%)%O\n"
   "*Format of group lines.
 It works along the same lines as a normal formatting string,
 with some simple extensions.
@@ -173,7 +173,6 @@ with some simple extensions.
 %O    Moderated group (string, \"(m)\" or \"\")
 %P    Topic indentation (string)
 %m    Whether there is new(ish) mail in the group (char, \"%\")
-%l    Whether there are GroupLens predictions for this group (string)
 %n    Select from where (string)
 %z    A string that look like `<%s:%n>' if a foreign select method is used
 %d    The date the group was last entered.
index cc25707..97a705e 100644 (file)
@@ -136,7 +136,7 @@ text properties. This is only needed on XEmacs, as FSF Emacs does this anyway."
 (defvar gnus-format-specs
   `((version . ,emacs-version)
     (gnus-version . ,(gnus-continuum-version))
-    (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"
@@ -193,6 +193,12 @@ text properties. This is only needed on XEmacs, as FSF Emacs does this anyway."
            (not (equal emacs-version
                        (cdr (assq 'version gnus-format-specs)))))
     (setq gnus-format-specs nil))
+  ;; 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))))
 
   ;; Go through all the formats and see whether they need updating.
   (let (new-format entry type val)
@@ -615,6 +621,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))
index 4e235c7..f82ea6c 100644 (file)
@@ -35,9 +35,6 @@
 (require 'mm-util)
 (require 'nnheader)
 
-;; For backward compatibility with old .newsrc.eld files.
-(defvar gnus-tmp-grouplens "")  
-
 (defgroup gnus nil
   "The coffee-brewing, all singing, all dancing, kitchen sink newsreader."
   :group 'news
@@ -2768,7 +2765,6 @@ with some simple extensions.
 %z   Article zcore (character)
 %t   Number of articles under the current thread (number).
 %e   Whether the thread is empty or not (character).
-%l   GroupLens score (string).
 %V   Total thread score (number).
 %P   The line number (number).
 %O   Download mark (character).