[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/cus-edit.el
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/cus-edit.el |
Date: |
Sat, 24 Dec 2005 01:26:55 +0000 |
Index: emacs/lisp/cus-edit.el
diff -u emacs/lisp/cus-edit.el:1.254 emacs/lisp/cus-edit.el:1.255
--- emacs/lisp/cus-edit.el:1.254 Fri Dec 23 01:38:49 2005
+++ emacs/lisp/cus-edit.el Sat Dec 24 01:26:54 2005
@@ -1477,6 +1477,13 @@
:mouse-down-action (lambda (&rest junk) t)
:action (lambda (widget &optional event)
(custom-reset event))))
+ (widget-insert " ")
+ (when (or custom-file user-init-file)
+ (widget-create 'push-button
+ :tag "Erase Customization"
+ :help-echo "\
+Un-customize all settings in this buffer--save them with standard values."
+ :action 'Custom-reset-standard)))
(widget-insert "\n ")
(widget-create 'push-button
:tag "Reset to Current"
@@ -1489,13 +1496,6 @@
:help-echo "\
Reset all settings in this buffer to their saved values."
:action 'Custom-reset-saved)
- (widget-insert " ")
- (when (or custom-file user-init-file)
- (widget-create 'push-button
- :tag "Erase Customization"
- :help-echo "\
-Un-customize all settings in this buffer--save them with standard values."
- :action 'Custom-reset-standard)))
(if (not custom-buffer-verbose-help)
(progn
(widget-insert " ")
@@ -1747,6 +1747,15 @@
;; backward-compatibility alias
(put 'custom-changed-face 'face-alias 'custom-changed)
+(defface custom-themed '((((min-colors 88) (class color))
+ (:foreground "white" :background "blue1"))
+ (((class color))
+ (:foreground "white" :background "blue"))
+ (t
+ (:slant italic)))
+ "Face used when the customize item has been set by a theme."
+ :group 'custom-magic-faces)
+
(defface custom-saved '((t (:underline t)))
"Face used when the customize item has been saved."
:group 'custom-magic-faces)
@@ -1775,6 +1784,9 @@
(saved "!" custom-saved "\
SAVED and set." "\
something in this group has been set and saved.")
+ (themed "o" custom-themed "\
+THEMED." "\
+visible group members are all at standard values.")
(rogue "@" custom-rogue "\
NO CUSTOMIZATION DATA; not intended to be customized." "\
something in this group is not prepared for customization.")
@@ -2540,7 +2552,12 @@
(and (equal value (eval (car tmp)))
(equal comment temp))
(error nil))
- 'saved
+ (cond
+ ((eq 'user (caar (get symbol 'theme-value)))
+ 'saved)
+ ((eq 'standard (caar (get symbol 'theme-value)))
+ 'changed)
+ (t 'themed))
'changed))
((setq tmp (get symbol 'standard-value))
(if (condition-case nil
@@ -2751,11 +2768,7 @@
(put symbol 'customized-variable-comment nil)
(when (or (get symbol 'saved-value) (get symbol 'saved-variable-comment))
(put symbol 'saved-value nil)
- (custom-push-theme 'theme-value symbol 'user 'reset 'standard)
- ;; As a special optimizations we do not (explictly)
- ;; save resets to standard when no theme set the value.
- (if (null (cdr (get symbol 'theme-value)))
- (put symbol 'theme-value nil))
+ (custom-push-theme 'theme-value symbol 'user 'reset nil)
(put symbol 'saved-variable-comment nil)
(custom-save-all))
(widget-put widget :custom-state 'unknown)
@@ -3415,7 +3428,7 @@
(put symbol 'customized-face-comment nil)
(when (or (get symbol 'saved-face) (get symbol 'saved-face-comment))
(put symbol 'saved-face nil)
- (custom-push-theme 'theme-face symbol 'user 'reset 'standard)
+ (custom-push-theme 'theme-face symbol 'user 'reset nil)
;; Do not explictly save resets to standards without themes.
(if (null (cdr (get symbol 'theme-face)))
(put symbol 'theme-face nil))
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, (continued)
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Luc Teirlinck, 2005/12/08
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Luc Teirlinck, 2005/12/11
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Luc Teirlinck, 2005/12/12
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Luc Teirlinck, 2005/12/15
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, YAMAMOTO Mitsuharu, 2005/12/19
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Luc Teirlinck, 2005/12/19
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/22
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/22
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/22
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/22
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el,
Chong Yidong <=
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/23
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/23
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/24
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/24
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/24
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/30
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/30
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/31