Subject: bug#33665: 27.0.50; Variables not set up in Gnus when hooks are run

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 07 Dec 2018 17:37:11 +0100

It looks like gnus-newsgroup-name (and friends?) are no longer set when
the summary mode hooks are run, so hooks that rely on that are now
broken.

It also looks like summary mode line highlights no longer works.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  string-match("gnu.emacs.gnus\\|gmane.discuss\\|gnus.ding\\|gmane.te..." nil)
  (and gnus-moderated-groups (string-match gnus-moderated-groups gnus-newsgroup-name))
  (if (and gnus-moderated-groups (string-match gnus-moderated-groups gnus-newsgroup-name)) (progn (gnus-moderation-mode 1)))
  gnus-moderate()
  run-hooks(change-major-mode-after-body-hook special-mode-hook gnus-mode-hook gnus-summary-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook special-mode-hook gnus-mode-hook gnus-summary-mode-hook))
  run-mode-hooks(gnus-summary-mode-hook)
  gnus-summary-mode()
  gnus-summary-setup-buffer("nntp+news.gmane.org:gwene.com.bookofjoe")
  gnus-summary-read-group-1("nntp+news.gmane.org:gwene.com.bookofjoe" nil t nil nil nil)
  gnus-summary-read-group("nntp+news.gmane.org:gwene.com.bookofjoe" nil t nil nil nil nil)
  gnus-group-read-group(nil t)
  gnus-group-select-group(nil)
  gnus-topic-select-group(nil)
  funcall-interactively(gnus-topic-select-group nil)
  call-interactively(gnus-topic-select-group nil nil)
  command-execute(gnus-topic-select-group)

In GNU Emacs 27.0.50 (build 54, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2018-12-07 built on stories
Repository revision: e4a8f6ebbf4e8cf4d87d5b7b9940b61b51073fd3
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description: Debian GNU/Linux 9 (stretch)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no