]> code.delx.au - gnu-emacs/commitdiff
(menu-bar-options-save): For the options
authorRichard M. Stallman <rms@gnu.org>
Sat, 27 Nov 2004 19:01:02 +0000 (19:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 27 Nov 2004 19:01:02 +0000 (19:01 +0000)
that are toggled with menu-bar-make-mm-toggle, don't check
for customized-value prop.

lisp/menu-bar.el

index 597e77b6165f8b2a4726890d657d7d7e4f70a40d..433b75dd0282663e1a2f17450cc8bcbd4672c7bb 100644 (file)
@@ -634,12 +634,17 @@ by \"Save Options\" in Custom buffers.")
   "Save current values of Options menu items using Custom."
   (interactive)
   (let ((need-save nil))
+    ;; These are set with menu-bar-make-mm-toggle, which does not
+    ;; put on a customized-value property.
+    (dolist (elt '(line-number-mode column-number-mode cua-mode show-paren-mode
+                  transient-mark-mode global-font-lock-mode))
+      (and (customize-mark-to-save elt)
+          (setq need-save t)))
     ;; These are set with `customize-set-variable'.
-    (dolist (elt '(line-number-mode column-number-mode scroll-bar-mode
+    (dolist (elt '(scroll-bar-mode
                   debug-on-quit debug-on-error menu-bar-mode tool-bar-mode
                   save-place uniquify-buffer-name-style fringe-mode
-                  case-fold-search cua-mode show-paren-mode
-                  transient-mark-mode global-font-lock-mode
+                  case-fold-search 
                   display-time-mode auto-compression-mode
                   current-language-environment default-input-method
                   ;; Saving `text-mode-hook' is somewhat questionable,