From: Lars Ingebrigtsen Date: Mon, 6 Sep 2021 09:07:55 +0000 (+0200) Subject: Reset gnus-group-use-permanent-levels when Gnus restarts X-Git-Tag: emacs-28.0.90~1150^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9309dc9df997bbd088391724272ae619622a5307;p=emacs.git 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). --- 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))))