changeset 59489:a72af674f3d8

(type-break-mode): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Wed, 12 Jan 2005 04:24:20 +0000
parents a111e3fea086
children dc3b1db0bed2
files lisp/type-break.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/type-break.el	Wed Jan 12 00:52:33 2005 +0000
+++ b/lisp/type-break.el	Wed Jan 12 04:24:20 2005 +0000
@@ -389,6 +389,9 @@
       (and (interactive-p)
            (message "Type Break mode is already enabled")))
      (type-break-mode
+      (with-current-buffer (find-file-noselect type-break-file-name 'nowarn)
+        (setq buffer-save-without-query t))
+
       (or global-mode-string
           (setq global-mode-string '("")))
       (or (assq 'type-break-mode-line-message-mode
@@ -433,7 +436,6 @@
       (do-auto-save)
       (with-current-buffer (find-file-noselect type-break-file-name
                                                'nowarn)
-	(setq buffer-save-without-query t)
 	(set-buffer-modified-p nil)
         (unlock-buffer)
         (kill-this-buffer))