Gnus development mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Gnus Beta Testers <ding@gnus.org>
Subject: Re: Problem with %a in topic line formats
Date: Wed, 20 Apr 2022 17:05:04 +0200	[thread overview]
Message-ID: <87fsm7hk2n.fsf@igel.home> (raw)
In-Reply-To: <m2ilr3ddz8.fsf@didierverna.net> (Didier Verna's message of "Wed, 20 Apr 2022 16:30:19 +0200")

On Apr 20 2022, Didier Verna wrote:

> I've recently upgraded a Homebrew emacs-mac distribution and got a new
> error launching Gnus, which I tracked down to my topic line format using
> the %a specifier.
>
> Gnus complains at launch that "entries" is a void variable, and the
> culprit I think is here:
>
> (defconst gnus-topic-line-format-alist
>   '((?n name ?s)
>     (?v visible ?s)
>     (?i indentation ?s)
>     (?g number-of-groups ?d)
>     (?a (gnus-topic-articles-in-topic entries) ?d)
>     (?A total-number-of-articles ?d)
>     (?l level ?d)))

Does this help?

diff --git a/lisp/gnus/gnus-topic.el b/lisp/gnus/gnus-topic.el
index c079d889d9..281ed08963 100644
--- a/lisp/gnus/gnus-topic.el
+++ b/lisp/gnus/gnus-topic.el
@@ -650,6 +650,7 @@ gnus-topic-insert-topic-line
   (let* ((visible (if visiblep "" "..."))
 	 (level level)
 	 (name name)
+         (entries entries)
 	 (indentation (make-string (* gnus-topic-indent-level level) ? ))
 	 (total-number-of-articles unread)
 	 (number-of-groups (length entries))

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


  reply	other threads:[~2022-04-20 15:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-20 14:30 Didier Verna
2022-04-20 15:05 ` Andreas Schwab [this message]
2022-04-21  7:11   ` Didier Verna

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=87fsm7hk2n.fsf@igel.home \
    --to=schwab@linux-m68k.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).