Gnus development mailing list
 help / color / mirror / Atom feed
From: Francis Moreau <francis.moro@gmail.com>
To: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: Topic mode, too limited ?
Date: Wed, 26 Jan 2011 20:12:29 +0100	[thread overview]
Message-ID: <m2tygvzdgi.fsf@gmail.com> (raw)
In-Reply-To: <87fwsh3pag.fsf@lifelogs.com> (Ted Zlatanov's message of "Tue, 25 Jan 2011 10:45:43 -0600")

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Tue, 25 Jan 2011 06:39:12 +0100 Francis Moreau <francis.moro@gmail.com> wrote: 
>
> FM> Ted Zlatanov <tzz@lifelogs.com> writes:
>>> On Mon, 24 Jan 2011 21:34:59 +0100 Francis Moreau <francis.moro@gmail.com> wrote: 
>>> 
> FM> Ted Zlatanov <tzz@lifelogs.com> writes:
>>>>> 
>>>>> I have played with gnus-topic-line-format a little and it should be
>>>>> fairly easy:
>>>>> 
>>>>> ;; set the format to use the function below (%i is indentation)
>>>>> (setq gnus-topic-line-format "%i[ %u&topic-line; ] %v\n")
>>>>> 
>>>>> ;; this function will return some string you can use, here it's just the topic name
>>>>> (defun gnus-user-format-function-topic-line (dummy)
>>>>> name)
>>> 
> FM> You're a wizzard !
>>> 
> FM> I mean, how that 'name' symbol came into the picture ?
>>> 
> FM> I haven't find a trace of it in the doc...
>>> 
>>> I *think* I copied it from someone.  Or maybe I looked at gnus-topic.el
>>> and gnus-spec.el.  It's lexically scoped and pretty complicated code.
>
> FM> Do you think 'name' is part of the API I can use enough so I can use it
> FM> reliably ?
>
> There's no API.  It's just a lexical variable.  If Lars wants to make it
> an official API he can, but I don't know if that's useful.

Lars, would you mind to add this information part of the API by using
the unused parameter of gnus-user-format-function-topic-line. That would
make a change which should be backward compatible.

Thanks
-- 
Francis



  reply	other threads:[~2011-01-26 19:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-23 14:18 Francis Moreau
2011-01-23 21:09 ` Lars Ingebrigtsen
2011-01-23 22:46   ` Francis Moreau
2011-01-23 23:08     ` Lars Ingebrigtsen
2011-01-23 23:25       ` Francis Moreau
2011-01-23 23:12   ` Francis Moreau
2011-01-24 17:38   ` Ted Zlatanov
2011-01-24 20:21     ` Francis Moreau
2011-01-24 20:30       ` Ted Zlatanov
2011-01-24 20:34         ` Francis Moreau
2011-01-24 21:45           ` Ted Zlatanov
2011-01-25  5:39             ` Francis Moreau
2011-01-25 16:45               ` Ted Zlatanov
2011-01-26 19:12                 ` Francis Moreau [this message]
2011-01-27  1:30                   ` Lars Ingebrigtsen
2011-01-27  9:06                     ` Francis Moreau
2011-01-27 23:44                       ` Lars 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=m2tygvzdgi.fsf@gmail.com \
    --to=francis.moro@gmail.com \
    --cc=ding@gnus.org \
    --cc=tzz@lifelogs.com \
    /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).