From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59039 Path: main.gmane.org!not-for-mail From: Adam Duck Newsgroups: gmane.emacs.gnus.general Subject: gnus-summary-line-format / bbdb integration Date: Tue, 02 Nov 2004 23:11:36 +0100 Message-ID: <86vfcn3nqf.fsf@oumu.localdomain> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1099439281 26518 80.91.229.6 (2 Nov 2004 23:48:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Nov 2004 23:48:01 +0000 (UTC) Original-X-From: ding-owner+M7579@lists.math.uh.edu Wed Nov 03 00:47:47 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CP8NP-0005fN-00 for ; Wed, 03 Nov 2004 00:47:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CP8K6-000156-00; Tue, 02 Nov 2004 17:44:22 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CP6sh-0000y5-00 for ding@lists.math.uh.edu; Tue, 02 Nov 2004 16:12:00 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CP6sf-0000fm-Tt for ding@lists.math.uh.edu; Tue, 02 Nov 2004 16:11:57 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by justine.libertine.org (Postfix) with ESMTP id 471503A0039 for ; Tue, 2 Nov 2004 16:11:53 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CP6sa-00036T-00 for ; Tue, 02 Nov 2004 23:11:52 +0100 Original-Received: from dsl-213-023-220-018.arcor-ip.net ([213.23.220.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Nov 2004 23:11:52 +0100 Original-Received: from duck by dsl-213-023-220-018.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Nov 2004 23:11:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 63 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dsl-213-023-220-018.arcor-ip.net User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.5 (chestnut) Cancel-Lock: sha1:xdMF6q8sN3Tpn7h/jziFmGBLXwQ= Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59039 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59039 --=-=-= Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Hi list, I've been using gnus for quite some time now and started playing around with it. I must say that it's one of the - if not the - best programs I've ever used. But I have two questions I haven't seen answered anywhere: 1.) I have the following `gnus-summary-line-format': Value: "%U%R%z %*%B%-50,50s=A3=FC%d=A3=FC%4L(%5k)=A3=FC%(%[ %-23,23f%]%)\\n" Well, it doesn't work correctly because I'd like to have "%-50,50(Bs)" or something. Meaning: I want to pad and max both, B and s, to 50 chars. I can't believe that gnus doesn't have such a grouping operator in format-strings but does have some other very obscure things... :) 2.) I have the following code in .gnus: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline Content-Transfer-Encoding: quoted-printable (gnus-add-configuration '(article (vertical 1.0 (horizontal 0.33 (group 0.33) (vertical 1.0 (summary 1.0 point) ("*BBDB*" 0.33))) (if gnus-carpal (summary-carpal 4)) (article 1.0)))) --=-=-= But I'd like to have "*BBDB*" pop up only if bbdb actually has some data on the person in the headers. So, which function do I test? I tried `bbdb/gnus-update-records' like this: --=-=-= Content-Type: application/emacs-lisp Content-Disposition: inline (summary 1.0 point) (if (bbdb/gnus-update-records) ("*BBDB*" 0.33)))) --=-=-= but all it says then is Invalid function: *BBDB* so, what do I do wrong here? Oh, I just found out it also does this for "(if t ...) which is bad... So, what do I do wrong here? bye, Adam. --=-=-=--