changeset 59684:bc6858294dbb

(type-break-mode): Add a test for type-break-file-name being non-nil.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 22 Jan 2005 10:41:29 +0000
parents 5a541acffeba
children d980e03df4e4
files lisp/type-break.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/type-break.el	Sat Jan 22 10:37:25 2005 +0000
+++ b/lisp/type-break.el	Sat Jan 22 10:41:29 2005 +0000
@@ -390,8 +390,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))
+      (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 '("")))