From: Richard M. Stallman Date: Sun, 5 Nov 2006 15:17:49 +0000 (+0000) Subject: (custom-save-all): Error if saving in .emacs and it had an error when loaded. X-Git-Tag: emacs-pretest-22.0.91~328 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e29e9065b11f39828f73d0cdb8492e9d8cc563e2;p=emacs.git (custom-save-all): Error if saving in .emacs and it had an error when loaded. --- diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 00f76b31520..c70284f4455 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -4149,6 +4149,8 @@ if only the first line of the docstring is shown.")) ;;;###autoload (defun custom-save-all () "Save all customizations in `custom-file'." + (when (and (null custom-file) init-file-had-error) + (error "Cannot save customizations; init file was not fully loaded")) (let* ((filename (custom-file)) (recentf-exclude (if recentf-mode (cons (concat "\\`"