* message.el (message-check-news-header-syntax): Question even
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 1 Apr 2001 23:25:14 +0000 (23:25 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 1 Apr 2001 23:25:14 +0000 (23:25 +0000)
when Gnus doesn't know the group names.
(message-send-news): Clean up.

* gnus-start.el (gnus-dribble-read-file): Say whether Gnus was
exited on purpose without saving.

* gnus-group.el (gnus-group-quit): Mark the dribble file as `Q'.

lisp/ChangeLog
lisp/gnus-group.el
lisp/gnus-start.el

index 502c7ab..aa180bb 100644 (file)
@@ -1,3 +1,14 @@
+2001-04-02 00:40:12  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * message.el (message-check-news-header-syntax): Question even
+       when Gnus doesn't know the group names.
+       (message-send-news): Clean up.
+
+       * gnus-start.el (gnus-dribble-read-file): Say whether Gnus was
+       exited on purpose without saving.
+
+       * gnus-group.el (gnus-group-quit): Mark the dribble file as `Q'.
+
 2001-04-01 00:37:14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-score.el (gnus-score-orphans): Clean up.
index 7cde35e..657eae2 100644 (file)
@@ -3672,6 +3672,8 @@ The hook `gnus-exit-gnus-hook' is called before actually exiting."
                     (file-name-nondirectory gnus-current-startup-file))))
     (gnus-run-hooks 'gnus-exit-gnus-hook)
     (gnus-configure-windows 'group t)
+    (gnus-dribble-enter
+     ";;; Gnus was exited on purpose without saving the .newsrc files.")
     (gnus-dribble-save)
     (gnus-close-backends)
     (gnus-clear-system)
index c22f15b..8a3dd72 100644 (file)
@@ -811,6 +811,7 @@ cautiously -- unloading may cause trouble."
       (set-buffer-modified-p nil)
       (let ((auto (make-auto-save-file-name))
            (gnus-dribble-ignore t)
+           (purpose nil)
            modes)
        (when (or (file-exists-p auto) (file-exists-p dribble-file))
          ;; Load whichever file is newest -- the auto save file
@@ -826,10 +827,15 @@ cautiously -- unloading may cause trouble."
                     (file-exists-p dribble-file)
                     (setq modes (file-modes gnus-current-startup-file)))
            (set-file-modes dribble-file modes))
+         (goto-char (point-min))
+         (when (search-forward "Gnus was exited on purpose" nil t)
+           (setq purpose t))
          ;; Possibly eval the file later.
          (when (or gnus-always-read-dribble-file
                    (gnus-y-or-n-p
-                    "Gnus auto-save file exists.  Do you want to read it? "))
+                    (if purpose
+                        "Gnus exited on purpose without saving; read auto-save file anyway? "
+                    "Gnus auto-save file exists.  Do you want to read it? ")))
            (setq gnus-dribble-eval-file t)))))))
 
 (defun gnus-dribble-eval-file ()