From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74620 Path: news.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.gnus.general Subject: nnir summary line formatting Date: Thu, 02 Dec 2010 10:14:41 -0500 Message-ID: <87ipzc1a1q.fsf@andy.bu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291302957 1649 80.91.229.12 (2 Dec 2010 15:15:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Dec 2010 15:15:57 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22976@lists.math.uh.edu Thu Dec 02 16:15:53 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1POAsx-00011e-B6 for ding-account@gmane.org; Thu, 02 Dec 2010 16:15:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1POAsR-0003Ph-Ce; Thu, 02 Dec 2010 09:15:19 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1POAsO-0003PT-Ol for ding@lists.math.uh.edu; Thu, 02 Dec 2010 09:15:16 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1POAsE-0002Je-4V for ding@lists.math.uh.edu; Thu, 02 Dec 2010 09:15:16 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1POAsD-0002W4-00 for ; Thu, 02 Dec 2010 16:15:05 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1POAs7-0000aH-SZ for ding@gnus.org; Thu, 02 Dec 2010 16:14:59 +0100 Original-Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 16:14:59 +0100 Original-Received: from cohen by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Dec 2010 16:14:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:WFoIyC2WX+0zWRAbLwz21F07KIY= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74620 Archived-At: When using nnir for search results there are nnir-specific bits of information that are of potential interest: the retrieval score (RSV) of the article (some search engines, such as gmane, report a match "score"; others, such as imap, just give all results an arbitrary score of "100"); and the original group the article belongs to. Historically (which means "up till now") nnir has done this by mangling the subject header of each article to incorporate this info; then when the article subject is displayed in the summary buffer the info shows up. This is bad for a couple of reasons: some things, notably the registry, care about the original subject so the mangling has to be accounted for; and it should really be up to the user what information is displayed in summary-buffer lines (with a sensible default). A (mostly) straightforward way to handle this is to use the gnus-summary-line-format. I would like to add a couple of specs to gnus-summary-line-format-alist to do this (tentatively %Z for the RSV and %G for the full group name and %g for the short name). I'd then introduce nnir-summary-line-format which is used locally in nnir summary buffers rather than gnus-summary-line-format (set through a hook). Does this sound OK?