aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1997-12-04 04:30:59 +0000
committerKarl Heuer1997-12-04 04:30:59 +0000
commitfc4d62fe1ba210f4f21c0345b791a0fb60c75b41 (patch)
tree4f24fac8209fc02e3049d8e9768fa93051b33065
parentdb9d97e1f56f86d409227c112356ac1962863758 (diff)
downloademacs-fc4d62fe1ba210f4f21c0345b791a0fb60c75b41.tar.gz
emacs-fc4d62fe1ba210f4f21c0345b791a0fb60c75b41.zip
(custom-save-delete, custom-save-all):
Bind default-major-mode around visiting custom-file.
-rw-r--r--lisp/cus-edit.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 35e32afbb6c..e06207c53b7 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -2935,9 +2935,10 @@ you need to explicitly load that file for the settings to take effect."
2935 :group 'customize) 2935 :group 'customize)
2936 2936
2937(defun custom-save-delete (symbol) 2937(defun custom-save-delete (symbol)
2938 "Delete the call to SYMBOL form `custom-file'. 2938 "Delete the call to SYMBOL from `custom-file'.
2939Leave point at the location of the call, or after the last expression." 2939Leave point at the location of the call, or after the last expression."
2940 (set-buffer (find-file-noselect (or custom-file user-init-file))) 2940 (let ((default-major-mode))
2941 (set-buffer (find-file-noselect (or custom-file user-init-file))))
2941 (goto-char (point-min)) 2942 (goto-char (point-min))
2942 (catch 'found 2943 (catch 'found
2943 (while t 2944 (while t
@@ -3044,7 +3045,8 @@ Leave point at the location of the call, or after the last expression."
3044 (custom-save-variables) 3045 (custom-save-variables)
3045 (custom-save-faces) 3046 (custom-save-faces)
3046 (save-excursion 3047 (save-excursion
3047 (set-buffer (find-file-noselect (or custom-file user-init-file))) 3048 (let ((default-major-mode nil))
3049 (set-buffer (find-file-noselect (or custom-file user-init-file))))
3048 (save-buffer)))) 3050 (save-buffer))))
3049 3051
3050;;; The Customize Menu. 3052;;; The Customize Menu.