Gnus development mailing list
 help / color / mirror / Atom feed
From: Wesley Hardaker <whardake@sphysdec1.unil.ch>
Subject: Re: Argh. Annotations.
Date: 08 Apr 1997 08:35:20 +0200	[thread overview]
Message-ID: <qk2u3li2f9z.fsf@sphysdec1.unil.ch> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of 07 Apr 1997 10:38:38 +0200

>>>>> In article <w8sk9mfrzw1.fsf@hrotti.ifi.uio.no>, Lars Magne Ingebrigtsen <larsi@ifi.uio.no> 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


  reply	other threads:[~1997-04-08  6:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-07  8:38 Lars Magne Ingebrigtsen
1997-04-08  6:35 ` Wesley Hardaker [this message]
1997-04-11 22:49   ` Danny Siu
1997-04-21 10:22     ` Wesley Hardaker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=qk2u3li2f9z.fsf@sphysdec1.unil.ch \
    --to=whardake@sphysdec1.unil.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).