(save-buffers-kill-emacs): Don't use the macro `when' in the body of
authoryamaoka <yamaoka>
Tue, 30 Nov 1999 01:48:03 +0000 (01:48 +0000)
committeryamaoka <yamaoka>
Tue, 30 Nov 1999 01:48:03 +0000 (01:48 +0000)
`defadvice'.  Use `if' instead.

lisp/gnus-start.el

index ddc14da..2a45823 100644 (file)
@@ -2316,10 +2316,11 @@ If FORCE is non-nil, the .newsrc file is read."
 ;; Call the function above at C-x C-c.
 (defadvice save-buffers-kill-emacs (before save-gnus-newsrc-file-maybe activate)
   "Save .newsrc and .newsrc.eld when Emacs is killed."
-  (when (get-buffer gnus-group-buffer)
-    (gnus-run-hooks 'gnus-exit-gnus-hook)
-    (gnus-offer-save-summaries)
-    (gnus-save-newsrc-file)))
+  (if (get-buffer gnus-group-buffer)
+      (progn
+       (gnus-run-hooks 'gnus-exit-gnus-hook)
+       (gnus-offer-save-summaries)
+       (gnus-save-newsrc-file))))
 
 (defun gnus-gnus-to-quick-newsrc-format ()
   "Insert Gnus variables such as gnus-newsrc-alist in lisp format."