# HG changeset patch # User aidan # Date 1194533020 0 # Node ID ef6c55ab3090fd8bad5d30e749276442ad35b60b # Parent 1dabc28c10d0851ab511cf4549ece7578f3fd72f [xemacs-hg @ 2007-11-08 14:43:38 by aidan] Fix corruption of ~/.emacs when trying to migrate an init file; thank you Jason Spiro! diff -r 1dabc28c10d0 -r ef6c55ab3090 lisp/ChangeLog --- a/lisp/ChangeLog Thu Nov 08 07:12:40 2007 +0000 +++ b/lisp/ChangeLog Thu Nov 08 14:43:40 2007 +0000 @@ -1,3 +1,12 @@ +2007-11-08 Aidan Kehoe + + * cus-edit.el (custom-save-all): + Merge Jason Spiro's fix of + c241693f0710021645g642f145n5925c7a35e7b2c58@mail.gmail.com , to + avoid corruption of the custom-set-variables and custom-set-fonts + calls in ~/.emacs if XEmacs doesn't understand any part of the + syntax of ~/.emacs . + 2007-10-31 Mike Sperber * autoload.el (make-autoload): Add `defclass' and `defmethod' as diff -r 1dabc28c10d0 -r ef6c55ab3090 lisp/cus-edit.el --- a/lisp/cus-edit.el Thu Nov 08 07:12:40 2007 +0000 +++ b/lisp/cus-edit.el Thu Nov 08 14:43:40 2007 +0000 @@ -3756,6 +3756,9 @@ ;;;###autoload (defun custom-save-all () "Save all customizations in `custom-file'." + (when init-file-had-error + (error 'invalid-change + "Cannot save customizations; init file was not fully loaded")) (let ((inhibit-read-only t)) (custom-save-variables) (custom-save-faces)