Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Quieter gnus-registry
@ 2004-01-17 18:04 Nevin Kapur
  2004-01-17 21:07 ` Xavier Maillard
  2004-01-21  0:11 ` Ted Zlatanov
  0 siblings, 2 replies; 5+ messages in thread
From: Nevin Kapur @ 2004-01-17 18:04 UTC (permalink / raw)


I am proposing the following the patch for
gnus-registry-split-fancy-with-parent.  It suppresses messages in the
minibuffer that don't convey any useful information.

If the patch is unacceptable someone with commit privileges should
commit it.

Thanks,
-Nevin


2004-01-17  Nevin Kapur  <nkapur@cs.caltech.edu>

	* gnus-registry.el (gnus-registry-split-fancy-with-parent):
	Suppress unnecessary messages.

Index: lisp/gnus-registry.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/gnus-registry.el,v
retrieving revision 7.2
diff -u -r7.2 gnus-registry.el
--- lisp/gnus-registry.el	5 Jan 2004 23:01:16 -0000	7.2
+++ lisp/gnus-registry.el	17 Jan 2004 08:44:06 -0000
@@ -384,13 +384,14 @@
 		 (unless (equal res (gnus-registry-fetch-group key))
 		   (setq single-match nil))
 		 (setq res (gnus-registry-fetch-group key))
-		 (gnus-message
-		  ;; raise level of messaging if gnus-registry-track-extra
-		  (if gnus-registry-track-extra 5 9)
-		  "%s (extra tracking) traced sender %s to group %s"
-		  "gnus-registry-split-fancy-with-parent"
-		  sender
-		  (if res res "nil")))))
+		 (when (and sender res)
+		   (gnus-message
+		    ;; raise level of messaging if gnus-registry-track-extra
+		    (if gnus-registry-track-extra 5 9)
+		    "%s (extra tracking) traced sender %s to group %s"
+		    "gnus-registry-split-fancy-with-parent"
+		    sender
+		    res)))))
 	   gnus-registry-hashtb))
 	(when (and single-match
 		   (gnus-registry-track-subject-p)
@@ -407,13 +408,14 @@
 		 (unless (equal res (gnus-registry-fetch-group key))
 		   (setq single-match nil))
 		 (setq res (gnus-registry-fetch-group key))
-		 (gnus-message
-		  ;; raise level of messaging if gnus-registry-track-extra
-		  (if gnus-registry-track-extra 5 9)
-		  "%s (extra tracking) traced subject %s to group %s"
-		  "gnus-registry-split-fancy-with-parent"
-		  subject
-		  (if res res "nil")))))
+		 (when (and subject res)
+		   (gnus-message
+		    ;; raise level of messaging if gnus-registry-track-extra
+		    (if gnus-registry-track-extra 5 9)
+		    "%s (extra tracking) traced subject %s to group %s"
+		    "gnus-registry-split-fancy-with-parent"
+		    subject
+		    res)))))
 	   gnus-registry-hashtb))
 	(unless single-match
 	  (gnus-message
@@ -421,10 +423,11 @@
 	   "gnus-registry-split-fancy-with-parent: too many extra matches for %s"
 	   refstr)
 	  (setq res nil))))
-    (gnus-message
-     5 
-     "gnus-registry-split-fancy-with-parent traced %s to group %s"
-     refstr (if res res "nil"))
+    (when (and refstr res)
+      (gnus-message
+       5
+       "gnus-registry-split-fancy-with-parent traced %s to group %s"
+       refstr res))
 
     (when (and res gnus-registry-use-long-group-names)
       (let ((m1 (gnus-find-method-for-group res))





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

end of thread, other threads:[~2004-01-21  0:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-17 18:04 [PATCH] Quieter gnus-registry Nevin Kapur
2004-01-17 21:07 ` Xavier Maillard
2004-01-17 23:40   ` Nevin Kapur
2004-01-18  9:26     ` Xavier Maillard
2004-01-21  0:11 ` Ted Zlatanov

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).