diff options
| author | John Paul Wallington | 2003-01-29 21:44:18 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2003-01-29 21:44:18 +0000 |
| commit | ee1f522d4efd1efd6b74c06830c61a5837754621 (patch) | |
| tree | f3630ab91dbe99e7d2ca943cdf675171227fe211 | |
| parent | 0e467b97a53588267a48215432345440edee56a3 (diff) | |
| download | emacs-ee1f522d4efd1efd6b74c06830c61a5837754621.tar.gz emacs-ee1f522d4efd1efd6b74c06830c61a5837754621.zip | |
2003-01-29 Didier Verna <didier@xemacs.org>
* cus-edit.el (custom-save-variables): also save non theme'd ones.
* cus-edit.el (custom-save-faces): ditto.
| -rw-r--r-- | lisp/cus-edit.el | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 5b98c13659b..484ec0c0475 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -758,7 +758,7 @@ If given a prefix (or a COMMENT argument), also prompt for a comment." | |||
| 758 | (interactive (custom-prompt-variable "Set variable: " | 758 | (interactive (custom-prompt-variable "Set variable: " |
| 759 | "Set %s to value: " | 759 | "Set %s to value: " |
| 760 | current-prefix-arg)) | 760 | current-prefix-arg)) |
| 761 | 761 | ||
| 762 | (cond ((string= comment "") | 762 | (cond ((string= comment "") |
| 763 | (put variable 'variable-comment nil)) | 763 | (put variable 'variable-comment nil)) |
| 764 | (comment | 764 | (comment |
| @@ -2515,7 +2515,7 @@ to switch between two values." | |||
| 2515 | :button-args '(:help-echo "Control whether this attribute has any effect.") | 2515 | :button-args '(:help-echo "Control whether this attribute has any effect.") |
| 2516 | :value-to-internal 'custom-face-edit-fix-value | 2516 | :value-to-internal 'custom-face-edit-fix-value |
| 2517 | :match (lambda (widget value) | 2517 | :match (lambda (widget value) |
| 2518 | (widget-checklist-match widget | 2518 | (widget-checklist-match widget |
| 2519 | (custom-face-edit-fix-value widget value))) | 2519 | (custom-face-edit-fix-value widget value))) |
| 2520 | :convert-widget 'custom-face-edit-convert-widget | 2520 | :convert-widget 'custom-face-edit-convert-widget |
| 2521 | :args (mapcar (lambda (att) | 2521 | :args (mapcar (lambda (att) |
| @@ -2543,7 +2543,7 @@ Also change :reverse-video to :inverse-video." | |||
| 2543 | ((eq key :reverse-video) | 2543 | ((eq key :reverse-video) |
| 2544 | (push :inverse-video result) | 2544 | (push :inverse-video result) |
| 2545 | (push val result)) | 2545 | (push val result)) |
| 2546 | (t | 2546 | (t |
| 2547 | (push key result) | 2547 | (push key result) |
| 2548 | (push val result)))) | 2548 | (push val result)))) |
| 2549 | (setq value (cdr (cdr value)))) | 2549 | (setq value (cdr (cdr value)))) |
| @@ -2606,7 +2606,7 @@ Also change :reverse-video to :inverse-video." | |||
| 2606 | (delete-region (car (cdr inactive)) | 2606 | (delete-region (car (cdr inactive)) |
| 2607 | (+ (car (cdr inactive)) (cdr (cdr inactive)))) | 2607 | (+ (car (cdr inactive)) (cdr (cdr inactive)))) |
| 2608 | (widget-put widget :inactive nil)))) | 2608 | (widget-put widget :inactive nil)))) |
| 2609 | 2609 | ||
| 2610 | 2610 | ||
| 2611 | (defun custom-face-edit-attribute-tag (widget) | 2611 | (defun custom-face-edit-attribute-tag (widget) |
| 2612 | "Returns the first :tag property in WIDGET or one of its children." | 2612 | "Returns the first :tag property in WIDGET or one of its children." |
| @@ -3709,7 +3709,8 @@ or (if there were none) at the end of the buffer." | |||
| 3709 | (when (or (and spec | 3709 | (when (or (and spec |
| 3710 | (eq (nth 0 spec) 'user) | 3710 | (eq (nth 0 spec) 'user) |
| 3711 | (eq (nth 1 spec) 'set)) | 3711 | (eq (nth 1 spec) 'set)) |
| 3712 | comment) | 3712 | comment |
| 3713 | (and (null spec) (get symbol 'saved-value))) | ||
| 3713 | (unless (bolp) | 3714 | (unless (bolp) |
| 3714 | (princ "\n")) | 3715 | (princ "\n")) |
| 3715 | (princ " '(") | 3716 | (princ " '(") |
| @@ -3779,7 +3780,8 @@ or (if there were none) at the end of the buffer." | |||
| 3779 | (when (or (and theme-spec | 3780 | (when (or (and theme-spec |
| 3780 | (eq (nth 0 theme-spec) 'user) | 3781 | (eq (nth 0 theme-spec) 'user) |
| 3781 | (eq (nth 1 theme-spec) 'set)) | 3782 | (eq (nth 1 theme-spec) 'set)) |
| 3782 | comment) | 3783 | comment |
| 3784 | (and (null theme-spec) (get symbol 'saved-face))) | ||
| 3783 | ;; Don't print default face here. | 3785 | ;; Don't print default face here. |
| 3784 | (unless (bolp) | 3786 | (unless (bolp) |
| 3785 | (princ "\n")) | 3787 | (princ "\n")) |
| @@ -3833,7 +3835,7 @@ or (if there were none) at the end of the buffer." | |||
| 3833 | (mapatoms mapper) | 3835 | (mapatoms mapper) |
| 3834 | (when started-writing | 3836 | (when started-writing |
| 3835 | (princ ")\n"))))) | 3837 | (princ ")\n"))))) |
| 3836 | 3838 | ||
| 3837 | (defun custom-save-loaded-themes () | 3839 | (defun custom-save-loaded-themes () |
| 3838 | (let ((themes (reverse (get 'user 'theme-loads-themes))) | 3840 | (let ((themes (reverse (get 'user 'theme-loads-themes))) |
| 3839 | (standard-output (current-buffer))) | 3841 | (standard-output (current-buffer))) |
| @@ -3843,7 +3845,7 @@ or (if there were none) at the end of the buffer." | |||
| 3843 | (mapc (lambda (theme) | 3845 | (mapc (lambda (theme) |
| 3844 | (princ "\n '") | 3846 | (princ "\n '") |
| 3845 | (prin1 theme)) themes) | 3847 | (prin1 theme)) themes) |
| 3846 | (princ " )\n")))) | 3848 | (princ " )\n")))) |
| 3847 | 3849 | ||
| 3848 | ;;;###autoload | 3850 | ;;;###autoload |
| 3849 | (defun customize-save-customized () | 3851 | (defun customize-save-customized () |