2005-12-30 Richard M. Stallman <rms@gnu.org>
- * cus-edit.el (custom-save-loaded-themes): Call custom-save-delete.
- (custom-save-all): Call custom-save-loaded-themes.
+ * cus-edit.el (custom-save-loaded-themes): Function deleted.
(custom-save-variables): Don't delete or add custom-load-themes call.
2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
(old-buffer (find-buffer-visiting filename)))
(with-current-buffer (or old-buffer (find-file-noselect filename))
(let ((inhibit-read-only t))
- (custom-save-loaded-themes)
(custom-save-variables)
(custom-save-faces))
(let ((file-precious-flag t))
(princ ")")
(unless (looking-at "\n")
(princ "\n")))))
-
-(defun custom-save-loaded-themes ()
- "Update the `custom-load-themes' call in the buffer."
- (custom-save-delete 'custom-load-themes)
- (let ((themes (reverse (get 'user 'theme-loads-themes)))
- (standard-output (current-buffer)))
- (when themes
- (unless (bolp) (princ "\n"))
- (princ "(custom-load-themes")
- (mapc (lambda (theme)
- (princ "\n '")
- (prin1 theme)) themes)
- (princ " )\n"))))
\f
;;; The Customize Menu.