aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2005-12-24 15:21:45 +0000
committerChong Yidong2005-12-24 15:21:45 +0000
commitc5d290fb3bf885466a1f02161afbdec5131d38e6 (patch)
tree82d8380981e13e5b9ea7d1fe0de67a82c94e4c78
parent7c417300d8b89c6a8c0e5517ccc97cda250ed729 (diff)
downloademacs-c5d290fb3bf885466a1f02161afbdec5131d38e6.tar.gz
emacs-c5d290fb3bf885466a1f02161afbdec5131d38e6.zip
* custom.el (custom-push-theme): Fix docstring.
* cus-edit.el (custom-variable-set, custom-variable-save, custom-variable-save): Custom-quote widget values. (customize-save-variable): Fix custom-push-theme call.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/cus-edit.el10
-rw-r--r--lisp/custom.el17
3 files changed, 22 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index db51209d918..6b2e4f72403 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12005-12-24 Chong Yidong <cyd@stupidchicken.com>
2
3 * custom.el (custom-push-theme): Fix docstring.
4
5 * cus-edit.el (custom-variable-set, custom-variable-save,
6 custom-variable-save): Custom-quote widget values.
7 (customize-save-variable): Fix custom-push-theme call.
8
12005-12-24 Eli Zaretskii <eliz@gnu.org> 92005-12-24 Eli Zaretskii <eliz@gnu.org>
2 10
3 * w32-fns.el (w32-batch-update-autoloads): New function. 11 * w32-fns.el (w32-batch-update-autoloads): New function.
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index a7758129797..54d0fa23e52 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -940,7 +940,7 @@ If given a prefix (or a COMMENT argument), also prompt for a comment."
940 current-prefix-arg)) 940 current-prefix-arg))
941 (funcall (or (get variable 'custom-set) 'set-default) variable value) 941 (funcall (or (get variable 'custom-set) 'set-default) variable value)
942 (put variable 'saved-value (list (custom-quote value))) 942 (put variable 'saved-value (list (custom-quote value)))
943 (custom-push-theme 'theme-value variable 'user 'set (list (custom-quote value))) 943 (custom-push-theme 'theme-value variable 'user 'set (custom-quote value))
944 (cond ((string= comment "") 944 (cond ((string= comment "")
945 (put variable 'variable-comment nil) 945 (put variable 'variable-comment nil)
946 (put variable 'saved-variable-comment nil)) 946 (put variable 'saved-variable-comment nil))
@@ -2670,7 +2670,7 @@ Optional EVENT is the location for the menu."
2670 (custom-comment-hide comment-widget)) 2670 (custom-comment-hide comment-widget))
2671 (custom-variable-backup-value widget) 2671 (custom-variable-backup-value widget)
2672 (custom-push-theme 'theme-value symbol 'user 2672 (custom-push-theme 'theme-value symbol 'user
2673 'set (widget-value child)) 2673 'set (custom-quote (widget-value child)))
2674 (funcall set symbol (eval (setq val (widget-value child)))) 2674 (funcall set symbol (eval (setq val (widget-value child))))
2675 (put symbol 'customized-value (list val)) 2675 (put symbol 'customized-value (list val))
2676 (put symbol 'variable-comment comment) 2676 (put symbol 'variable-comment comment)
@@ -2682,7 +2682,7 @@ Optional EVENT is the location for the menu."
2682 (custom-comment-hide comment-widget)) 2682 (custom-comment-hide comment-widget))
2683 (custom-variable-backup-value widget) 2683 (custom-variable-backup-value widget)
2684 (custom-push-theme 'theme-value symbol 'user 2684 (custom-push-theme 'theme-value symbol 'user
2685 'set (widget-value child)) 2685 'set (custom-quote (widget-value child)))
2686 (funcall set symbol (setq val (widget-value child))) 2686 (funcall set symbol (setq val (widget-value child)))
2687 (put symbol 'customized-value (list (custom-quote val))) 2687 (put symbol 'customized-value (list (custom-quote val)))
2688 (put symbol 'variable-comment comment) 2688 (put symbol 'variable-comment comment)
@@ -2712,7 +2712,7 @@ Optional EVENT is the location for the menu."
2712 (custom-comment-hide comment-widget)) 2712 (custom-comment-hide comment-widget))
2713 (put symbol 'saved-value (list (widget-value child))) 2713 (put symbol 'saved-value (list (widget-value child)))
2714 (custom-push-theme 'theme-value symbol 'user 2714 (custom-push-theme 'theme-value symbol 'user
2715 'set (widget-value child)) 2715 'set (custom-quote (widget-value child)))
2716 (funcall set symbol (eval (widget-value child))) 2716 (funcall set symbol (eval (widget-value child)))
2717 (put symbol 'variable-comment comment) 2717 (put symbol 'variable-comment comment)
2718 (put symbol 'saved-variable-comment comment)) 2718 (put symbol 'saved-variable-comment comment))
@@ -2724,7 +2724,7 @@ Optional EVENT is the location for the menu."
2724 (put symbol 'saved-value 2724 (put symbol 'saved-value
2725 (list (custom-quote (widget-value child)))) 2725 (list (custom-quote (widget-value child))))
2726 (custom-push-theme 'theme-value symbol 'user 2726 (custom-push-theme 'theme-value symbol 'user
2727 'set (widget-value child)) 2727 'set (custom-quote (widget-value child)))
2728 (funcall set symbol (widget-value child)) 2728 (funcall set symbol (widget-value child))
2729 (put symbol 'variable-comment comment) 2729 (put symbol 'variable-comment comment)
2730 (put symbol 'saved-variable-comment comment))) 2730 (put symbol 'saved-variable-comment comment)))
diff --git a/lisp/custom.el b/lisp/custom.el
index 46ae85c1226..2ba45c147e2 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -637,14 +637,15 @@ set by three different themes. Its `theme-value' property is:
637 \(jonadab set underline) 637 \(jonadab set underline)
638 \(gnome2 set info-xref) 638 \(gnome2 set info-xref)
639 639
640The theme `subtle-hacker' says to use the same value for the variable as 640The theme `subtle-hacker' says to use the same value for the
641the theme `gnome2'. The theme values set by each of these themes can be 641variable as the theme `gnome2'. Therefore, the theme value of
642changed, but only the one defined by `subtle-hacker' takes effect, because 642the variable is `info-xref'. The theme value defined by
643the theme currently has the highest precedence. To change the precedence 643`subtle-hacker' is in effect, because that theme currently has
644of the themes, use `enable-theme'. 644the highest precedence. To change the precedence of the themes,
645 645use `enable-theme'.
646The user has not customized the face; had he done that, the list would 646
647contain an entry for the `user' theme, too. 647The user has not customized the variable; had he done that, the
648list would contain an entry for the `user' theme, too.
648 649
649See `custom-known-themes' for a list of known themes." 650See `custom-known-themes' for a list of known themes."
650 (unless (or (eq prop 'theme-value) 651 (unless (or (eq prop 'theme-value)