aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong <[email protected]>2006-09-29 18:31:33 +0000
committerChong Yidong <[email protected]>2006-09-29 18:31:33 +0000
commit31b7fa51d6eef97c8fc4e30684f6e5a0aa8c65cd (patch)
treebb0b65c82509c8049a5576900b00bd886b7e7983
parent13f131df0288db62374f6420bdd0ff5034e19f91 (diff)
* cus-edit.el (custom-save-all): Switch to emacs-lisp mode before
saving anything to be sure that `forward-sexp' behaves correctly.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/cus-edit.el2
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d1db638e58..5b9783f651 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-26 Micha,Ak(Bl Cadilhac <[email protected]>
+
+ * cus-edit.el (custom-save-all): Switch to emacs-lisp mode before
+ saving anything to be sure that `forward-sexp' behaves correctly.
+
2006-09-29 Chong Yidong <[email protected]>
* simple.el (line-move-finish): Ignore field boundaries if the
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 82d2f14787..2f752c5fb6 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))