From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67139 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: variable-width font in summary buffer? Date: Sun, 06 Jul 2008 14:49:06 +0200 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 1215348634 2696 80.91.229.12 (6 Jul 2008 12:50:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2008 12:50:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15599@lists.math.uh.edu Sun Jul 06 14:51:21 2008 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 1KFTi1-000482-06 for ding-account@gmane.org; Sun, 06 Jul 2008 14:51:17 +0200 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 1KFTgH-0001cz-BP; Sun, 06 Jul 2008 07:49:29 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KFTgF-0001cj-En for ding@lists.math.uh.edu; Sun, 06 Jul 2008 07:49:27 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1KFTg9-000581-07 for ding@lists.math.uh.edu; Sun, 06 Jul 2008 07:49:27 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1KFTgR-0002qk-00 for ; Sun, 06 Jul 2008 14:49:39 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KFTg2-0005Tl-Ui for ding@gnus.org; Sun, 06 Jul 2008 12:49:14 +0000 Original-Received: from remote5.student.chalmers.se ([129.16.29.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Jul 2008 12:49:14 +0000 Original-Received: from bojohan+news by remote5.student.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Jul 2008 12:49:14 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: remote5.student.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:m+Cv9PMHbaLwZAmwzMWktn7JMuo= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67139 Archived-At: 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 Bockgård