From: Chong Yidong Date: Fri, 29 Sep 2006 18:31:33 +0000 (+0000) Subject: * cus-edit.el (custom-save-all): Switch to emacs-lisp mode before X-Git-Tag: emacs-pretest-22.0.90~301 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=31b7fa51d6eef97c8fc4e30684f6e5a0aa8c65cd;p=emacs.git * cus-edit.el (custom-save-all): Switch to emacs-lisp mode before saving anything to be sure that `forward-sexp' behaves correctly. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d1db638e588..5b9783f6514 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-09-26 Micha,Ak(Bl Cadilhac + + * 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 * simple.el (line-move-finish): Ignore field boundaries if the 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))