[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102154: Fix bug#7306; customization
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102154: Fix bug#7306; customization of minor-mode variables defined in C. |
Date: |
Fri, 29 Oct 2010 19:27:44 -0700 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102154
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Fri 2010-10-29 19:27:44 -0700
message:
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.
modified:
lisp/ChangeLog
lisp/cus-start.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2010-10-29 19:20:28 +0000
+++ b/lisp/ChangeLog 2010-10-30 02:27:44 +0000
@@ -1,3 +1,9 @@
+2010-10-30 Glenn Morris <address@hidden>
+
+ * cus-start.el: Add :set properties for minor modes menu-bar-mode,
+ tool-bar-mode, transient-mark-mode. (Bug#7306)
+ Include the :set property in the dumped Emacs.
+
2010-10-29 Stefan Monnier <address@hidden>
SMIE: change indent rules format, improve smie-setup.
=== modified file 'lisp/cus-start.el'
--- a/lisp/cus-start.el 2010-10-29 06:51:36 +0000
+++ b/lisp/cus-start.el 2010-10-30 02:27:44 +0000
@@ -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 <address@hidden>
;; Keywords: internal
@@ -103,7 +103,8 @@
(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 @@
(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 @@
(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 @@
(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))))))))
- [Emacs-diffs] /srv/bzr/emacs/trunk r102154: Fix bug#7306; customization of minor-mode variables defined in C.,
Glenn Morris <=