From: Eli Zaretskii Date: Sat, 22 Jan 2005 10:41:29 +0000 (+0000) Subject: (type-break-mode): Add a test for type-break-file-name being non-nil. X-Git-Tag: ttn-vms-21-2-B4~2630 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cc7fe910c26e0bee80f5d843824f74b7bd5bb57b;p=emacs.git (type-break-mode): Add a test for type-break-file-name being non-nil. --- 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 '("")))