aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-12-30 22:57:07 +0000
committerRichard M. Stallman2005-12-30 22:57:07 +0000
commita8d6ee3c532d9bdc5925b49b0e589059393c3ca4 (patch)
tree26d92f77df3ebd3dc879671a6da3060c19513a4a
parent16ecd4c5b1afa09575f0ed197718735f55505a16 (diff)
downloademacs-a8d6ee3c532d9bdc5925b49b0e589059393c3ca4.tar.gz
emacs-a8d6ee3c532d9bdc5925b49b0e589059393c3ca4.zip
(custom-save-loaded-themes): Function deleted.
(custom-save-all): Don't call custom-save-loaded-themes.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/cus-edit.el14
2 files changed, 1 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3a3bb4d5352..aaadc554715 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,6 @@
12005-12-30 Richard M. Stallman <rms@gnu.org> 12005-12-30 Richard M. Stallman <rms@gnu.org>
2 2
3 * cus-edit.el (custom-save-loaded-themes): Call custom-save-delete. 3 * cus-edit.el (custom-save-loaded-themes): Function deleted.
4 (custom-save-all): Call custom-save-loaded-themes.
5 (custom-save-variables): Don't delete or add custom-load-themes call. 4 (custom-save-variables): Don't delete or add custom-load-themes call.
6 5
72005-12-30 Stefan Monnier <monnier@iro.umontreal.ca> 62005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 5686d473231..ed0a478321e 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -4018,7 +4018,6 @@ if only the first line of the docstring is shown."))
4018 (old-buffer (find-buffer-visiting filename))) 4018 (old-buffer (find-buffer-visiting filename)))
4019 (with-current-buffer (or old-buffer (find-file-noselect filename)) 4019 (with-current-buffer (or old-buffer (find-file-noselect filename))
4020 (let ((inhibit-read-only t)) 4020 (let ((inhibit-read-only t))
4021 (custom-save-loaded-themes)
4022 (custom-save-variables) 4021 (custom-save-variables)
4023 (custom-save-faces)) 4022 (custom-save-faces))
4024 (let ((file-precious-flag t)) 4023 (let ((file-precious-flag t))
@@ -4240,19 +4239,6 @@ This function does not save the buffer."
4240 (princ ")") 4239 (princ ")")
4241 (unless (looking-at "\n") 4240 (unless (looking-at "\n")
4242 (princ "\n"))))) 4241 (princ "\n")))))
4243
4244(defun custom-save-loaded-themes ()
4245 "Update the `custom-load-themes' call in the buffer."
4246 (custom-save-delete 'custom-load-themes)
4247 (let ((themes (reverse (get 'user 'theme-loads-themes)))
4248 (standard-output (current-buffer)))
4249 (when themes
4250 (unless (bolp) (princ "\n"))
4251 (princ "(custom-load-themes")
4252 (mapc (lambda (theme)
4253 (princ "\n '")
4254 (prin1 theme)) themes)
4255 (princ " )\n"))))
4256 4242
4257;;; The Customize Menu. 4243;;; The Customize Menu.
4258 4244