changeset 73169:f11aa3b5788d

* cus-edit.el (custom-save-all): Switch to emacs-lisp mode before saving anything to be sure that `forward-sexp' behaves correctly.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 29 Sep 2006 18:31:33 +0000
parents 3351001b9545
children 1ddd29aeaa3b
files lisp/ChangeLog lisp/cus-edit.el
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Sep 29 18:21:52 2006 +0000
+++ b/lisp/ChangeLog	Fri Sep 29 18:31:33 2006 +0000
@@ -1,3 +1,8 @@
+2006-09-26  Micha,Ak(Bl Cadilhac  <michael.cadilhac@lrde.org>
+
+	* 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  <cyd@stupidchicken.com>
 
 	* simple.el (line-move-finish): Ignore field boundaries if the
--- a/lisp/cus-edit.el	Fri Sep 29 18:21:52 2006 +0000
+++ b/lisp/cus-edit.el	Fri Sep 29 18:31:33 2006 +0000
@@ -4157,6 +4157,8 @@
 				    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))