From 2143764e8da9fb2c9c431bcd467b54710a6700f7 Mon Sep 17 00:00:00 2001 From: czkmt Date: Wed, 8 Dec 1999 19:30:57 +0000 Subject: [PATCH] (gnus): New advice. Always synchronize the modeline "Plugged" status display with the value of `gnus-plugged'. --- lisp/gnus-agent.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/gnus-agent.el b/lisp/gnus-agent.el index 889283f..c1eebb1 100644 --- a/lisp/gnus-agent.el +++ b/lisp/gnus-agent.el @@ -320,6 +320,10 @@ fetched will be limited to it. If not a positive integer, never consider it." (setq gnus-plugged t) (gnus)) +(defadvice gnus (after gnus-agent-advice activate preactivate) + "Update modeline." + (gnus-agent-toggle-plugged gnus-plugged)) + ;;;###autoload (defun gnus-agentize () "Allow Gnus to be an offline newsreader. -- 1.7.10.4