]> git.eshelyaron.com Git - emacs.git/commitdiff
(type-break-mode): Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Wed, 12 Jan 2005 04:24:20 +0000 (04:24 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 12 Jan 2005 04:24:20 +0000 (04:24 +0000)
lisp/type-break.el

index b51a74ea37e678bcea790d97bd938daaf3372756..7a387bfe062578e125dcc585f83213ee5532b1f9 100644 (file)
@@ -389,6 +389,9 @@ problems."
       (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 @@ problems."
       (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))