From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1868 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.user Subject: Re: Face (X-Face?) Date: Mon, 13 Jan 2003 16:59:52 +0100 Message-ID: References: <87vg0ub22b.fsf@at_ipipan.waw.pl> <87bs2ld7t9.fsf@labatt.uhoreg.ca> <878yxppdow.fsf@orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668505 13004 80.91.229.2 (31 Jan 2006 00:48:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:48:25 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:29:49 2006 Original-Path: quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: 178.230.13.217.in-addr.dgcsystems.net Original-X-Trace: quimby.gnus.org 1042473985 4721 217.13.230.178 (13 Jan 2003 16:06:25 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 13 Jan 2003 16:06:25 GMT User-Agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:4sSVNIa3WfBy/Z+YpBVnxih84/I= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2008 Original-Lines: 56 X-Gnus-Article-Number: 2008 Tue Jan 17 17:29:49 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1868 Archived-At: Lars Magne Ingebrigtsen writes: > Michael Livshin writes: > >> I'd like to ask Gnus to render those pictures on the right, so that >> articles would look like so: >> >> +-------------------------------------------------------+ >> | | >> | | >> | | >> | ------------------------------------------------------| >> | | >> +-------------------------------------------------------+ > > Unless the X/Emacs rendering system has changed lately, that's > actually very difficult to do. I think the only way to do that is to > insert one space at a time and query Emacs how many pixels we now > have left. When you're far enough to the right, you insert the face. Using the space-width it becomes a little easier (insert one space with the space-width property and then the face, then increase the space-width length until it can't be increased further without wrapping the line), but I think it is impossible to get the above because an image cannot occupy several lines as far as I know. So it is only possible to get the following: +-------------------------------------------------------+ | | | | | | | | | | | ------------------------------------------------------| | | +-------------------------------------------------------+ Another idea is to make use of multiple emacs buffers for this, i.e.: +---------------------------------------------+--------+ | || | || | || | | | +---------------------------------------------+--------+ | | +------------------------------------------------------+ If the status bar and scrollbars can be disabled or minimized (which I believe is the case), I think this could work rather well. Presumably, the easiest way to implement it would be to simply disable viewing headers in the current *Article* buffer and then add the two other buffers with the headers and X-face, like the tree buffer is added now. I'm not sure if it is worth the trouble.