From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10640 Path: main.gmane.org!not-for-mail From: Wesley Hardaker Newsgroups: gmane.emacs.gnus.general Subject: Re: Argh. Annotations. Date: 08 Apr 1997 08:35:20 +0200 Organization: Universite de Lausanne, BSP Sender: whardake@sphysdec1.unil.ch Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035150476 25518 80.91.224.250 (20 Oct 2002 21:47:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:47:56 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id XAA16308 for ; Mon, 7 Apr 1997 23:47:29 -0700 Original-Received: from unilmta3.unil.ch ([130.223.27.29]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Tue, 8 Apr 1997 08:35:52 +0200 Original-Received: from sphysdec1.unil.ch by unilmta3.unil.ch with SMTP inbound; Tue, 8 Apr 1997 08:35:22 +0200 Original-Received: by sphysdec1.unil.ch (5.65v3.2/Unil-3.1/) id AA09558; Tue, 8 Apr 1997 08:35:21 +0200 Original-To: ding@ifi.uio.no X-Face: #qW^}a%m*T^{A:Cp}$R\"38+d}41-Z}uU8,r%F#c#s:~Nzp0G9](s?,K49KJ]s"*7gvRgA SrAvQc4@/}L7Qc=w{)]ACO\R{LF@S{pXfojjjGg6c;q6{~C}CxC^^&~(F]`1W)%9j/iS/ IM",B1M.?{w8ckLTYD'`|kTr\i\cgY)P4 X-Url: http://www.ece.ucdavis.edu/~hardaker In-Reply-To: Lars Magne Ingebrigtsen's message of 07 Apr 1997 10:38:38 +0200 Original-Lines: 43 X-Mailer: Gnus v5.4.25/XEmacs 19.15 Xref: main.gmane.org gmane.emacs.gnus.general:10640 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10640 >>>>> In article , Lars Magne Ingebrigtsen writes: Lars> (add-hook 'gnus-article-display-hook 'gnus-article-display-picons t) Lars> (add-hook 'gnus-article-display-hook 'gnus-group-display-picons t) Lars> (setq gnus-picons-display-where 'article) Lars> This works, except that the bar separating these two things comes Lars> *before* everything else, and not in the middle. This is highly Lars> annoying. Arg indeed... Sigh... The whole thing really needs to be re-thought out, but I've been a bit too busy on other projects lately. Anyway, you *might* try reversing the two add-hooks and see if that helps, which I think it will... Lars> I just don't understand the annotations stuff. The bar Lars> annotation is made with RIGHTP set to t, but it ends up on the Lars> beginning of the line anyway. The exact reason the whole thing needs to be re-thought out... Put the following in the mini-buffer: (let ((i 1)) (while (< i 7) (make-annotation (format "%d" i) (point-max) 'text nil nil nil (equal (mod i 2) 1)) (setq i (+ i 1)))) It returns '531246' as a set of annotations... This is, uh, wrong according to what you think it should be doing. Even numbers should be (not rightp) and odd should be rightp, but when you look at the results its not quite what you'd expect. In fact, its rather backwards in my mind. I spent a couple hours yelling at Emacs the day I was playing with this initially. Note that it always builds from the center, which is why the 'bar' must be placed first, as the rest of the items are built out from the center. This is why order matters so much, and I suspect the order of the hooks matters as well. Ick. Truely ugly. Wes