]> git.eshelyaron.com Git - emacs.git/commitdiff
(type-break-mode): Add a test for type-break-file-name being non-nil.
authorEli Zaretskii <eliz@gnu.org>
Sat, 22 Jan 2005 10:41:29 +0000 (10:41 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 22 Jan 2005 10:41:29 +0000 (10:41 +0000)
lisp/type-break.el

index 3a0b8b5adccc4da9d1481d63c8ff193ba4578185..0585e5bc61dae47a2cdb4e76e176d5169a7e342c 100644 (file)
@@ -390,8 +390,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))
+      (when type-break-file-name
+       (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 '("")))