diff options
author | Eli Zaretskii <eliz@gnu.org> | 2005-01-22 10:41:29 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2005-01-22 10:41:29 +0000 |
commit | 7271e624a3ff1254549bc7a00b9526c480739c4c (patch) | |
tree | 5d7e3f31910c43fb4d2d4616af3582696131f77f | |
parent | ff4872cda7b2db166954cf31438b67e7a93d261d (diff) | |
download | emacs-7271e624a3ff1254549bc7a00b9526c480739c4c.tar.gz |
(type-break-mode): Add a test for type-break-file-name being non-nil.
-rw-r--r-- | lisp/type-break.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/type-break.el b/lisp/type-break.el index 3a0b8b5adcc..0585e5bc61d 100644 --- a/lisp/type-break.el +++ b/lisp/type-break.el @@ -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 '(""))) |