Gnus development mailing list
 help / color / mirror / Atom feed
* Topic parameters are broken.
@ 2002-05-05  3:15 Matt Armstrong
  2002-05-05 10:02 ` Simon Josefsson
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Armstrong @ 2002-05-05  3:15 UTC (permalink / raw)


I've been working on a patch to gnus that introduces a new group
parameter.  In testing, I found that topic parameters are broken.

Per Abrahamsen made the following change to gnus-group-find-parameter
back in October to help make "mail-followup-to" generation faster.
(this is in revision 6.60 of gnus.el).

The original version always called the
gnus-group-get-parameter-function function, which in topic mode grabs
the topic mode parameters and concatenates them together before
searching for the group parameter value.

The new version skips this, so topic parameters will always be ignored
when using gnus-group-find-parameter to look for a specific parameter.

Should this change be backed out?


 (defun gnus-group-find-parameter (group &optional symbol allow-list)
   "Return the group parameters for GROUP.
-If SYMBOL, return the value of that symbol in the group parameters."
+If SYMBOL, return the value of that symbol in the group parameters.
+
+If you call this function inside a loop, consider using the faster
+`gnus-group-fast-parameter' instead."
   (save-excursion
     (set-buffer gnus-group-buffer)
-    (let ((parameters
-          (nconc
-           (copy-sequence
-            (funcall gnus-group-get-parameter-function group))
-           (gnus-parameters-get-parameter group))))
-      (if symbol
-         (gnus-group-parameter-value parameters symbol allow-list)
+    (if symbol
+       (gnus-group-fast-parameter group symbol allow-list)
+      (let ((parameters
+            (nconc
+             (copy-sequence
+              (funcall gnus-group-get-parameter-function group))
+             (gnus-parameters-get-parameter group))))
        parameters))))


-- 
Don't send mail to Jesse.Holm@hole.lickey.com
The address is there for spammers to harvest.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-05-05 13:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-05  3:15 Topic parameters are broken Matt Armstrong
2002-05-05 10:02 ` Simon Josefsson
2002-05-05 12:38   ` Matt Armstrong
2002-05-05 13:08     ` Matt Armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).