From cc7fe910c26e0bee80f5d843824f74b7bd5bb57b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 22 Jan 2005 10:41:29 +0000 Subject: [PATCH] (type-break-mode): Add a test for type-break-file-name being non-nil. --- lisp/type-break.el | 5 +++-- 1 file 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 '(""))) -- 2.39.5