diff options
| -rw-r--r-- | lisp/cus-edit.el | 59 |
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 "\ | ||
| 1582 | uninitialized, you should not see this.") | 1583 | uninitialized, you should not see this.") |
| 1583 | (unknown "?" italic "\ | 1584 | (unknown "?" italic "\ |
| 1584 | unknown, you should not see this.") | 1585 | unknown, you should not see this.") |
| 1585 | (hidden "-" default "\ | 1586 | (hidden "-" default "\ |
| 1586 | hidden, invoke \"Show\" in the previous line to show." "\ | 1587 | hidden, invoke \"Show\" in the previous line to show." "\ |
| 1587 | group now hidden, invoke \"Show\", above, to show contents.") | 1588 | group now hidden, invoke \"Show\", above, to show contents.") |
| 1588 | (invalid "x" custom-invalid-face "\ | 1589 | (invalid "x" custom-invalid-face "\ |
| 1589 | the value displayed for this %c is invalid and cannot be set.") | 1590 | the value displayed for this %c is invalid and cannot be set.") |
| 1590 | (modified "*" custom-modified-face "\ | 1591 | (modified "*" custom-modified-face "\ |
| 1591 | you have edited the value as text, but you have not set the %c." "\ | 1592 | you have edited the value as text, but you have not set the %c." "\ |
| 1592 | you have edited something in this group, but not set it.") | 1593 | you have edited something in this group, but not set it.") |
| 1593 | (set "+" custom-set-face "\ | 1594 | (set "+" custom-set-face "\ |
| 1594 | you have set this %c, but not saved it for future sessions." "\ | 1595 | you have set this %c, but not saved it for future sessions." "\ |
| 1595 | something in this group has been set, but not saved.") | 1596 | something in this group has been set, but not saved.") |
| 1596 | (changed ":" custom-changed-face "\ | 1597 | (changed ":" custom-changed-face "\ |
| 1597 | this %c has been changed outside the customize buffer." "\ | 1598 | this %c has been changed outside the customize buffer." "\ |
| 1598 | something in this group has been changed outside customize.") | 1599 | something in this group has been changed outside customize.") |
| 1599 | (saved "!" custom-saved-face "\ | 1600 | (saved "!" custom-saved-face "\ |
| 1600 | this %c has been set and saved." "\ | 1601 | this %c has been set and saved." "\ |
| 1601 | something in this group has been set and saved.") | 1602 | something in this group has been set and saved.") |
| 1602 | (rogue "@" custom-rogue-face "\ | 1603 | (rogue "@" custom-rogue-face "\ |
| 1603 | this %c has not been changed with customize." "\ | 1604 | this %c has not been changed with customize." "\ |
| 1604 | something in this group is not prepared for customization.") | 1605 | something in this group is not prepared for customization.") |
| 1605 | (standard " " nil "\ | 1606 | (standard " " nil "\ |
| 1606 | this %c is unchanged from its standard setting." "\ | 1607 | this %c is unchanged from its standard setting." "\ |
| 1607 | visible group members are all at standard settings.")) | 1608 | visible 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.") |