aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorRichard M. Stallman2004-12-13 19:39:01 +0000
committerRichard M. Stallman2004-12-13 19:39:01 +0000
commit2dfa4c57678aaf9eb5b3ca035e994bf828845b60 (patch)
tree40c60c8083db129b8ca90ea647c90431d9741ef1 /lisp/cus-edit.el
parent5ed3235280ca2e393f96545d58054443d3212ea7 (diff)
downloademacs-2dfa4c57678aaf9eb5b3ca035e994bf828845b60.tar.gz
emacs-2dfa4c57678aaf9eb5b3ca035e994bf828845b60.zip
(custom-face-selected): Handle `default' specs.
(custom-face-edit): Increase extra-offset.
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el59
1 files changed, 38 insertions, 21 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 046c1bebcf7..1e5b4cc7211 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1561,9 +1561,9 @@ item in another window.\n\n"))
1561 :group 'custom-magic-faces) 1561 :group 'custom-magic-faces)
1562 1562
1563(defface custom-set-face '((((class color)) 1563(defface custom-set-face '((((class color))
1564 (:foreground "blue" :background "white")) 1564 (:foreground "blue" :background "white"))
1565 (t 1565 (t
1566 (:slant italic))) 1566 (:slant italic)))
1567 "Face used when the customize item has been set." 1567 "Face used when the customize item has been set."
1568 :group 'custom-magic-faces) 1568 :group 'custom-magic-faces)
1569 1569
@@ -1578,31 +1578,32 @@ item in another window.\n\n"))
1578 "Face used when the customize item has been saved." 1578 "Face used when the customize item has been saved."
1579 :group 'custom-magic-faces) 1579 :group 'custom-magic-faces)
1580 1580
1581(defconst custom-magic-alist '((nil "#" underline "\ 1581(defconst custom-magic-alist
1582 '((nil "#" underline "\
1582uninitialized, you should not see this.") 1583uninitialized, you should not see this.")
1583 (unknown "?" italic "\ 1584 (unknown "?" italic "\
1584unknown, you should not see this.") 1585unknown, you should not see this.")
1585 (hidden "-" default "\ 1586 (hidden "-" default "\
1586hidden, invoke \"Show\" in the previous line to show." "\ 1587hidden, invoke \"Show\" in the previous line to show." "\
1587group now hidden, invoke \"Show\", above, to show contents.") 1588group now hidden, invoke \"Show\", above, to show contents.")
1588 (invalid "x" custom-invalid-face "\ 1589 (invalid "x" custom-invalid-face "\
1589the value displayed for this %c is invalid and cannot be set.") 1590the value displayed for this %c is invalid and cannot be set.")
1590 (modified "*" custom-modified-face "\ 1591 (modified "*" custom-modified-face "\
1591you have edited the value as text, but you have not set the %c." "\ 1592you have edited the value as text, but you have not set the %c." "\
1592you have edited something in this group, but not set it.") 1593you have edited something in this group, but not set it.")
1593 (set "+" custom-set-face "\ 1594 (set "+" custom-set-face "\
1594you have set this %c, but not saved it for future sessions." "\ 1595you have set this %c, but not saved it for future sessions." "\
1595something in this group has been set, but not saved.") 1596something in this group has been set, but not saved.")
1596 (changed ":" custom-changed-face "\ 1597 (changed ":" custom-changed-face "\
1597this %c has been changed outside the customize buffer." "\ 1598this %c has been changed outside the customize buffer." "\
1598something in this group has been changed outside customize.") 1599something in this group has been changed outside customize.")
1599 (saved "!" custom-saved-face "\ 1600 (saved "!" custom-saved-face "\
1600this %c has been set and saved." "\ 1601this %c has been set and saved." "\
1601something in this group has been set and saved.") 1602something in this group has been set and saved.")
1602 (rogue "@" custom-rogue-face "\ 1603 (rogue "@" custom-rogue-face "\
1603this %c has not been changed with customize." "\ 1604this %c has not been changed with customize." "\
1604something in this group is not prepared for customization.") 1605something in this group is not prepared for customization.")
1605 (standard " " nil "\ 1606 (standard " " nil "\
1606this %c is unchanged from its standard setting." "\ 1607this %c is unchanged from its standard setting." "\
1607visible group members are all at standard settings.")) 1608visible group members are all at standard settings."))
1608 "Alist of customize option states. 1609 "Alist of customize option states.
@@ -2576,7 +2577,7 @@ to switch between two values."
2576 "Edit face attributes." 2577 "Edit face attributes."
2577 :format "%t: %v" 2578 :format "%t: %v"
2578 :tag "Attributes" 2579 :tag "Attributes"
2579 :extra-offset 12 2580 :extra-offset 13
2580 :button-args '(:help-echo "Control whether this attribute has any effect.") 2581 :button-args '(:help-echo "Control whether this attribute has any effect.")
2581 :value-to-internal 'custom-face-edit-fix-value 2582 :value-to-internal 'custom-face-edit-fix-value
2582 :match (lambda (widget value) 2583 :match (lambda (widget value)
@@ -2817,13 +2818,29 @@ Only match frames that support the specified face attributes.")
2817 2818
2818(define-widget 'custom-face-selected 'group 2819(define-widget 'custom-face-selected 'group
2819 "Edit the attributes of the selected display in a face specification." 2820 "Edit the attributes of the selected display in a face specification."
2820 :args '((repeat :format "" 2821 :args '((choice :inline t
2821 :inline t 2822 (group :tag "With Defaults" :inline t
2822 (group custom-display-unselected sexp)) 2823 (group (const :tag "" default)
2823 (group (sexp :format "") custom-face-edit) 2824 (custom-face-edit :tag " Default\n Attributes"))
2824 (repeat :format "" 2825 (repeat :format ""
2825 :inline t 2826 :inline t
2826 sexp))) 2827 (group custom-display-unselected sexp))
2828 (group (sexp :format "")
2829 (custom-face-edit :tag " Overriding\n Attributes"))
2830 (repeat :format ""
2831 :inline t
2832 sexp))
2833 (group :tag "No Defaults" :inline t
2834 (repeat :format ""
2835 :inline t
2836 (group custom-display-unselected sexp))
2837 (group (sexp :format "")
2838 (custom-face-edit :tag "\n Attributes"))
2839 (repeat :format ""
2840 :inline t
2841 sexp)))))
2842
2843
2827 2844
2828(defconst custom-face-selected (widget-convert 'custom-face-selected) 2845(defconst custom-face-selected (widget-convert 'custom-face-selected)
2829 "Converted version of the `custom-face-selected' widget.") 2846 "Converted version of the `custom-face-selected' widget.")