From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Using proportional fonts in Gnus Date: Mon, 17 Apr 2006 00:37:34 -0400 Message-ID: <87slocrfix.fsf-monnier+emacs@gnu.org> References: <87wtdpmbbn.fsf@catnip.gol.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145248683 29378 80.91.229.2 (17 Apr 2006 04:38:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Apr 2006 04:38:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 17 06:37:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FVLUt-0001Cy-8r for ged-emacs-devel@m.gmane.org; Mon, 17 Apr 2006 06:37:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVLUs-0006BQ-Lq for ged-emacs-devel@m.gmane.org; Mon, 17 Apr 2006 00:37:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FVLUa-0006B3-DV for emacs-devel@gnu.org; Mon, 17 Apr 2006 00:37:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FVLUY-0006AR-Ab for emacs-devel@gnu.org; Mon, 17 Apr 2006 00:37:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FVLUY-0006AO-7V for emacs-devel@gnu.org; Mon, 17 Apr 2006 00:37:38 -0400 Original-Received: from [209.226.175.93] (helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FVLV5-0000Pv-5j; Mon, 17 Apr 2006 00:38:11 -0400 Original-Received: from alfajor ([70.53.192.213]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060417043734.SEPO13653.tomts36-srv.bellnexxia.net@alfajor>; Mon, 17 Apr 2006 00:37:34 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 7A2A5D737F; Mon, 17 Apr 2006 00:37:34 -0400 (EDT) Original-To: Miles Bader In-Reply-To: <87wtdpmbbn.fsf@catnip.gol.com> (Miles Bader's message of "Mon, 17 Apr 2006 06:59:08 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52941 Archived-At: >> Nope. Emacs' support for proportional fonts is still pretty >> immature. > It's interesting to consider how one might do this in an "Emacsy" > manner convenient for elisp programmers. > For instance a "super tab" text property saying "align to colum N (or > leave M units of whitespace if already there)"; maybe some degree of > indirection would be useful so one need not rewrite the buffer text to > change N dynamically. I'm not quite sure what the OP's "column based display" really entails, but a related problem I've bumped into several times already is that the :align-to display property helps handle left-aligned columns of proportional-text, but there's no easy way to cut the text at the right point if it overflows, and there's no easy way to handle right-alignment. In http://www.iro.umontreal.ca/~monnier/elisp/mpc.png you can see in the songs buffer (bottom right) that the last three song titles were truncated too soon bu t that the album title OTOH was truncated too late (thus pushing the Artist name a bit further than expected). The "Time" is right-laigned and in this case it worked out all right because digits are pretty evenly spaced and the "Time" string is overall fairly comparable (the length of "m" compensates the length of "i") so the "e" of "Time" goes only a tiny bit further than the actual time entries. Stefan