aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cus-theme.el
diff options
context:
space:
mode:
authorStefan Monnier2011-03-21 12:42:16 -0400
committerStefan Monnier2011-03-21 12:42:16 -0400
commitcafdcef32d55cbb44389d7e322e7f973cbb72dfd (patch)
tree7ee0c41ea8a589650ce6f4311fb10e61a63807b9 /lisp/cus-theme.el
parenta08a25d7aaf251aa18f2ef747be53734bc55cae9 (diff)
parent4e05e67e4cd0bc1b0a4ef3176a4d0d91c6b3738e (diff)
downloademacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.tar.gz
emacs-cafdcef32d55cbb44389d7e322e7f973cbb72dfd.zip
Merge from trunk
Diffstat (limited to 'lisp/cus-theme.el')
-rw-r--r--lisp/cus-theme.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/cus-theme.el b/lisp/cus-theme.el
index cdc066aa91a..4f9428d497b 100644
--- a/lisp/cus-theme.el
+++ b/lisp/cus-theme.el
@@ -100,6 +100,9 @@ named *Custom Theme*."
100 (make-local-variable 'custom-theme-insert-face-marker) 100 (make-local-variable 'custom-theme-insert-face-marker)
101 (make-local-variable 'custom-theme-insert-variable-marker) 101 (make-local-variable 'custom-theme-insert-variable-marker)
102 (make-local-variable 'custom-theme--listed-faces) 102 (make-local-variable 'custom-theme--listed-faces)
103 (when (called-interactively-p 'interactive)
104 (unless (y-or-n-p "Include basic face customizations in this theme? ")
105 (setq custom-theme--listed-faces nil)))
103 106
104 (if (eq theme 'user) 107 (if (eq theme 'user)
105 (widget-insert "This buffer contains all the Custom settings you have made. 108 (widget-insert "This buffer contains all the Custom settings you have made.
@@ -188,7 +191,7 @@ remove them from your saved Custom file.\n\n"))
188 (while vars 191 (while vars
189 (if (eq (car vars) 'custom-enabled-themes) 192 (if (eq (car vars) 'custom-enabled-themes)
190 (progn (pop vars) (pop values)) 193 (progn (pop vars) (pop values))
191 (custom-theme-add-var-1 (pop vars) (pop values))))) 194 (custom-theme-add-var-1 (pop vars) (eval (pop values))))))
192 (setq custom-theme-insert-variable-marker (point-marker)) 195 (setq custom-theme-insert-variable-marker (point-marker))
193 (widget-insert " ") 196 (widget-insert " ")
194 (widget-create 'push-button 197 (widget-create 'push-button
@@ -297,8 +300,9 @@ SPEC, if non-nil, should be a face spec to which to set the widget."
297 300
298;;; Reading and writing 301;;; Reading and writing
299 302
303;;;###autoload
300(defun custom-theme-visit-theme (theme) 304(defun custom-theme-visit-theme (theme)
301 "Load the custom theme THEME's settings into the current buffer." 305 "Set up a Custom buffer to edit custom theme THEME."
302 (interactive 306 (interactive
303 (list 307 (list
304 (intern (completing-read "Find custom theme: " 308 (intern (completing-read "Find custom theme: "
@@ -663,4 +667,6 @@ Theme files are named *-theme.el in `"))
663 (widget-toggle-action widget event) 667 (widget-toggle-action widget event)
664 (setq custom-theme-allow-multiple-selections (widget-value widget))) 668 (setq custom-theme-allow-multiple-selections (widget-value widget)))
665 669
670(provide 'cus-theme)
671
666;;; cus-theme.el ends here 672;;; cus-theme.el ends here