diff options
author | Glenn Morris <rgm@gnu.org> | 2010-10-29 19:27:44 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2010-10-29 19:27:44 -0700 |
commit | 88f43c67491e301d5e0fe4476d1a7203c64a3762 (patch) | |
tree | ae076477a2a31b139ceb1d56a81e0cefbfb7f1d5 /lisp/cus-start.el | |
parent | c4d17d50ea180c405fc58f9ffe693b6c633571ac (diff) | |
download | emacs-88f43c67491e301d5e0fe4476d1a7203c64a3762.tar.gz |
Fix bug#7306; customization of minor-mode variables defined in C.
* lisp/cus-start.el: Add :set properties for minor modes menu-bar-mode,
tool-bar-mode, transient-mark-mode.
Include the :set property in the dumped Emacs.
Diffstat (limited to 'lisp/cus-start.el')
-rw-r--r-- | lisp/cus-start.el | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 90291fc9229..af5338b0bcd 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -1,7 +1,7 @@ ;;; cus-start.el --- define customization properties of builtins ;; -;; Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, +;; 2007, 2008, 2009, 2010 Free Software Foundation, Inc. ;; ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> ;; Keywords: internal @@ -103,7 +103,8 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of (force-mode-line-update t))) (transient-mark-mode editing-basics boolean nil (not noninteractive) - :initialize custom-initialize-delay) + :initialize custom-initialize-delay + :set custom-set-minor-mode) ;; callint.c (mark-even-if-inactive editing-basics boolean) ;; callproc.c @@ -217,8 +218,13 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of (other :tag "hidden by keypress" 1)) "22.1") (make-pointer-invisible mouse boolean "23.2") - (menu-bar-mode frames boolean) - (tool-bar-mode (frames mouse) boolean) + (menu-bar-mode frames boolean nil t + ;; FIXME? +; :initialize custom-initialize-default + :set custom-set-minor-mode) + (tool-bar-mode (frames mouse) boolean nil t +; :initialize custom-initialize-default + :set custom-set-minor-mode) ;; fringe.c (overflow-newline-into-fringe fringe boolean) ;; indent.c @@ -486,11 +492,14 @@ since it could result in memory overflow and make Emacs crash." (put symbol 'safe-local-variable (cadr prop))) (if (setq prop (memq :risky rest)) (put symbol 'risky-local-variable (cadr prop))) + (if (setq prop (memq :set rest)) + (put symbol 'custom-set (cadr prop))) ;; Note this is the _only_ initialize property we handle. (if (eq (cadr (memq :initialize rest)) 'custom-initialize-delay) (push symbol custom-delayed-init-variables)) - ;; If this is NOT while dumping Emacs, - ;; set up the rest of the customization info. + ;; If this is NOT while dumping Emacs, set up the rest of the + ;; customization info. This is the stuff that is not needed + ;; until someone does M-x customize etc. (unless purify-flag ;; Add it to the right group(s). (if (listp group) @@ -504,9 +513,7 @@ since it could result in memory overflow and make Emacs crash." (setq prop (car rest) propval (cadr rest) rest (nthcdr 2 rest)) - (cond ((memq prop '(:risky :safe))) ; handled above - ((eq prop :set) - (put symbol 'custom-set propval)) + (cond ((memq prop '(:risky :safe :set))) ; handled above ((eq prop :tag) (put symbol 'custom-tag propval)))))))) |