# HG changeset patch # User Eli Zaretskii # Date 1106390489 0 # Node ID bc6858294dbbeec639f70899ab950813ac9c6c0e # Parent 5a541acffeba506c646c7971b8d44bcd5d4e2208 (type-break-mode): Add a test for type-break-file-name being non-nil. diff -r 5a541acffeba -r bc6858294dbb lisp/type-break.el --- 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 '("")))