* Problem with %a in topic line formats
@ 2022-04-20 14:30 Didier Verna
2022-04-20 15:05 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Didier Verna @ 2022-04-20 14:30 UTC (permalink / raw)
To: Gnus Beta Testers
Hello,
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)))
When I compare this with another installation that still works on
another Mac, I can see that Emacs goes from 27.1 to 28.1, but Gnus stays
at version 5.13. However, there /is/ a difference, namely, the fact that
in the more recent installation, the gnus-topic library has a
lexical-binding on (in the file's header).
I suspect this is the problem. Is this known? I don't know where this
comes from, but it's unfortunate that there are differences between two
gnus installs that advertise the saem version...
Thanks!
--
Resistance is futile. You will be jazzimilated.
Lisp, Jazz, Aïkido: http://www.didierverna.info
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with %a in topic line formats
2022-04-20 14:30 Problem with %a in topic line formats Didier Verna
@ 2022-04-20 15:05 ` Andreas Schwab
2022-04-21 7:11 ` Didier Verna
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2022-04-20 15:05 UTC (permalink / raw)
To: Gnus Beta Testers
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."
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-21 7:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 14:30 Problem with %a in topic line formats Didier Verna
2022-04-20 15:05 ` Andreas Schwab
2022-04-21 7:11 ` Didier Verna
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).