From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68357 Path: news.gmane.org!not-for-mail From: David Abrahams Newsgroups: gmane.emacs.gnus.general Subject: Re: variable-width font in summary buffer? Date: Mon, 16 Mar 2009 17:37:56 -0400 Message-ID: References: <871w28a44q.fsf@mcbain.luannocracy.com> <878wwf4sk1.fsf@catnip.gol.com> <87mykv7kxz.fsf@mcbain.luannocracy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1237239573 15152 80.91.229.12 (16 Mar 2009 21:39:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Mar 2009 21:39:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M16796@lists.math.uh.edu Mon Mar 16 22:40:49 2009 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.50) id 1LjKYB-0004p9-Hc for ding-account@gmane.org; Mon, 16 Mar 2009 22:40:47 +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 1LjKVn-0000zk-Ez; Mon, 16 Mar 2009 16:38:19 -0500 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 1LjKVl-0000zX-Le for ding@lists.math.uh.edu; Mon, 16 Mar 2009 16:38:17 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1LjKVg-0005ck-25 for ding@lists.math.uh.edu; Mon, 16 Mar 2009 16:38:17 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1LjKW2-0003wv-00 for ; Mon, 16 Mar 2009 22:38:34 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LjKVf-00011x-04 for ding@gnus.org; Mon, 16 Mar 2009 21:38:11 +0000 Original-Received: from 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com ([207.172.223.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Mar 2009 21:38:10 +0000 Original-Received: from dave by 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Mar 2009 21:38:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin) Cancel-Lock: sha1:hPcKl1M7Riub4yIgb4xKt4iukxY= X-Spam-Score: -3.5 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68357 Archived-At: on Sun Jul 06 2008, bojohan+news-AT-dd.chalmers.se (Johan Bockgård) wrote: > David Abrahams writes: > >> on Sat Jul 05 2008, Miles Bader wrote: >> >>> It shouldn't be that hard if gnus maintains lets you add >>> text-properties to the summary-buffer format string. If it does, you >>> could add display properties like (space :align-to COLUMN) instead of >>> using spaces for padding. >> >> That's an interesting idea. Do you have any pointers that might help >> me discover how to do that? I'm a longtime emacs user but this sounds >> like a bit of a stretch for me to figure out on my own. > > There are several ways to do this, like > > (defvar my-align-foo (propertize " " 'display '(space :align-to 50))) > > then > > (setq gnus-summary-line-format "[...] %~(form my-align-foo)@%s\n") > > or > > (defun gnus-user-format-function-align-foo (dummy) my-align-foo) > (setq gnus-summary-line-format "[...] %u&align-foo;%s\n") Johan, Looks like I forgot to thank you for this. It works; thanks! -- Dave Abrahams BoostPro Computing http://www.boostpro.com