Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: [gnus git] branch master updated: Make gnus-group-add-icon work
Date: Wed, 22 Sep 2010 18:47:59 +0200	[thread overview]
Message-ID: <m3sk11encw.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <sa3mxr9gado.fsf@cigue.easter-eggs.fr>

Julien Danjou <julien@danjou.info> writes:

>> I don't think the icon thing should be added to the hook by default...
>
> Why? It does nothing if %E is not used in format, but will not work if
> %E is used.

Hooks are generally for user-enabled stuff.  Even the highlight thing
really shouldn't be in that hook.

And it looks like an expensive function.  It starts with:

  (save-excursion
    (let* ((end (line-end-position))
           ;; now find out where the line starts and leave point there.
           (beg (line-beginning-position)))
      (save-restriction
        (narrow-to-region beg end)
        (goto-char beg)
        (let ((mystart (text-property-any beg end 'gnus-group-icon t)))

And this is run once per line, whether you have %E to or not, isn't it?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




  reply	other threads:[~2010-09-22 16:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1OyONL-0007B2-00@quimby.gnus.org>
2010-09-22 12:28 ` Lars Magne Ingebrigtsen
2010-09-22 13:45   ` Julien Danjou
2010-09-22 16:47     ` Lars Magne Ingebrigtsen [this message]
2010-09-22 17:15       ` Julien Danjou
2010-09-22 17:18         ` Lars Magne Ingebrigtsen

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=m3sk11encw.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    /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).