diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-09-29 18:31:33 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-09-29 18:31:33 +0000 |
commit | 31b7fa51d6eef97c8fc4e30684f6e5a0aa8c65cd (patch) | |
tree | bb0b65c82509c8049a5576900b00bd886b7e7983 /lisp/cus-edit.el | |
parent | 13f131df0288db62374f6420bdd0ff5034e19f91 (diff) | |
download | emacs-31b7fa51d6eef97c8fc4e30684f6e5a0aa8c65cd.tar.gz |
* cus-edit.el (custom-save-all): Switch to emacs-lisp mode before
saving anything to be sure that `forward-sexp' behaves correctly.
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r-- | lisp/cus-edit.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 82d2f147874..2f752c5fb66 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -4157,6 +4157,8 @@ if only the first line of the docstring is shown.")) recentf-exclude))) (old-buffer (find-buffer-visiting filename))) (with-current-buffer (or old-buffer (find-file-noselect filename)) + (unless (eq major-mode 'emacs-lisp-mode) + (emacs-lisp-mode)) (let ((inhibit-read-only t)) (custom-save-variables) (custom-save-faces)) |