From 9309dc9df997bbd088391724272ae619622a5307 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 6 Sep 2021 11:07:55 +0200 Subject: [PATCH] Reset gnus-group-use-permanent-levels when Gnus restarts * lisp/gnus/gnus-start.el (gnus-clear-system): Reset `gnus-group-use-permanent-levels' upon Gnus restart (bug#50416). --- lisp/gnus/gnus-start.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 02bbe19e7fe..4bbeb24dc39 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el @@ -715,6 +715,9 @@ the first newsgroup." (kill-buffer (get-file-buffer gnus-current-startup-file))) ;; Clear the dribble buffer. (gnus-dribble-clear) + ;; Reset the level when Gnus is restarted. + (when (numberp gnus-group-use-permanent-levels) + (setq gnus-group-use-permanent-levels t)) ;; Kill global KILL file buffer. (when (get-file-buffer (gnus-newsgroup-kill-file nil)) (kill-buffer (get-file-buffer (gnus-newsgroup-kill-file nil)))) -- 2.39.5