From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87530 Path: news.gmane.org!.POSTED!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.gnus.general Subject: Re: [RFC] Gnus generalized search, part II Date: Sun, 30 Apr 2017 08:15:42 +0800 Organization: Boston University Message-ID: <87o9veyclt.fsf@hanan> References: <87zif930mt.fsf@ericabrahamsen.net> <87shkx5z17.fsf@ericabrahamsen.net> <87zif3fupv.fsf@hanan> <87h91b3z2m.fsf@ericabrahamsen.net> <87tw5aztpy.fsf@ericabrahamsen.net> <87wpa6iif7.fsf@hanan> <87o9vh90cy.fsf@ericabrahamsen.net> <87r30dz618.fsf@hanan> <8637cqnc6k.fsf@local.lan> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1493511410 3908 195.159.176.226 (30 Apr 2017 00:16:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2017 00:16:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m35745@lists.math.uh.edu Sun Apr 30 02:16:47 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048035.atla03.us.yomura.com ([107.189.48.35]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4cXd-0000uK-O0 for ding-account@gmane.org; Sun, 30 Apr 2017 02:16:46 +0200 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048035.atla03.us.yomura.com (Halon) with ESMTPS id 4cf0729f-2d3a-11e7-b087-b499baabecb2; Sun, 30 Apr 2017 00:16:48 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1d4cWz-0007J0-KJ; Sat, 29 Apr 2017 19:16:05 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1d4cWv-0007ID-G7 for ding@lists.math.uh.edu; Sat, 29 Apr 2017 19:16:01 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1d4cWu-0007vf-CJ for ding@lists.math.uh.edu; Sat, 29 Apr 2017 19:16:01 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1d4cWr-0005RY-PB for ding@gnus.org; Sun, 30 Apr 2017 02:15:57 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d4cWk-0008Qp-6W for ding@gnus.org; Sun, 30 Apr 2017 02:15:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:OX0aKkdrl/lPnSGpEsSwciVYndc= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87530 Archived-At: >>>>> "Harry" == Harry Putnam writes: Harry> Sorry to bog things down to something probably trivial. But Harry> could one of you spell out a bit more what this `spec' is? Harry> My summary line format is a long string of char that I pieced Harry> together about a hundred yrs ago, haven't thought much about Harry> since, and are now mainly mystifying. Harry> Is it upper or lower case `g' as would seem to be what Andrew Harry> C suggests or something more? Harry> (setq gnus-summary-line-format "%O%2t%U%R%7d%z%I%(%[%4L: Harry> %-20,20f%]%) %s\n") The summary-line format is documented in the gnus manual in the section Gnus->Summary Buffer->Summary Buffer Format->Summary Buffer Lines There you can find the syntax of this thing and what all the different possibilities are (except for the new nnselect part of the spec which hasn't yet entered this part of the documentation:)) The only nnselect specific items are the specs for showing the "real" information about an article in an nnselect buffer. They are %Z Search retrieval score value (integer) %G Article original full group name (string) %g Article original short group name (string) If you are using the new nnselect stuff from git, then you can just use these in your spec and they will be blank in ordinary summary buffers, and show the right thing in nnselect buffers. So indeed %g is the right spec to get the originating group name (or %G if you want the longer name). And although I doubt it will be that helpful, here is the crazy one I use (I have a strangely formatted summary buffer :)) (setq gnus-summary-line-format (concat "%15{%U%R%}" "%15{│ %}" "%12{%-16&user-date;%}" "%15{ │%}" "%12{ %}%(%-18,18f%)" "%12{ %}%*%7{%B%}%«%14{%~(ignore 0)Z %}%11{%s%} %14{%g%}%»\n"))