]> git.eshelyaron.com Git - emacs.git/commitdiff
* cus-edit.el (custom-save-all): Switch to emacs-lisp mode before
authorChong Yidong <cyd@stupidchicken.com>
Fri, 29 Sep 2006 18:31:33 +0000 (18:31 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 29 Sep 2006 18:31:33 +0000 (18:31 +0000)
saving anything to be sure that `forward-sexp' behaves correctly.

lisp/ChangeLog
lisp/cus-edit.el

index d1db638e588607231ace75cb75005a115504f5e9..5b9783f65148bedfca94e520835c5fc4f51e254f 100644 (file)
@@ -1,3 +1,8 @@
+2006-09-26  Micha\e,Ak\e(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
index 82d2f147874da0fe8dc8097540a4e067cb4e19cf..2f752c5fb66747b5923627f0e8d5252286646a58 100644 (file)
@@ -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))