aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-11-05 15:17:49 +0000
committerRichard M. Stallman2006-11-05 15:17:49 +0000
commite29e9065b11f39828f73d0cdb8492e9d8cc563e2 (patch)
treeb6ae6b8c25c102050106b03ca2e23cce1dad0eb1
parent7a547817ccc5d36c0275f3e9533979f5145f0a80 (diff)
downloademacs-e29e9065b11f39828f73d0cdb8492e9d8cc563e2.tar.gz
emacs-e29e9065b11f39828f73d0cdb8492e9d8cc563e2.zip
(custom-save-all): Error if saving in .emacs and it had an error when loaded.
-rw-r--r--lisp/cus-edit.el2
1 files changed, 2 insertions, 0 deletions
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."))
4149;;;###autoload 4149;;;###autoload
4150(defun custom-save-all () 4150(defun custom-save-all ()
4151 "Save all customizations in `custom-file'." 4151 "Save all customizations in `custom-file'."
4152 (when (and (null custom-file) init-file-had-error)
4153 (error "Cannot save customizations; init file was not fully loaded"))
4152 (let* ((filename (custom-file)) 4154 (let* ((filename (custom-file))
4153 (recentf-exclude (if recentf-mode 4155 (recentf-exclude (if recentf-mode
4154 (cons (concat "\\`" 4156 (cons (concat "\\`"