summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-11-27 19:01:02 +0000
committerRichard M. Stallman <rms@gnu.org>2004-11-27 19:01:02 +0000
commit5373d675b50b86dd8e1bb21db51679c8470ae7dd (patch)
tree2efc91c7416550e14fb48436279f5a1e56a24fa2
parentfe3df972eb9e9e5f2f9188ed3c03c0df560b6fd9 (diff)
downloademacs-5373d675b50b86dd8e1bb21db51679c8470ae7dd.tar.gz
(menu-bar-options-save): For the options
that are toggled with menu-bar-make-mm-toggle, don't check for customized-value prop.
-rw-r--r--lisp/menu-bar.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 597e77b6165..433b75dd028 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -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,