summaryrefslogtreecommitdiff
path: root/lisp/cus-theme.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@gnu.org>2012-03-25 22:05:51 +0800
committerChong Yidong <cyd@gnu.org>2012-03-25 22:05:51 +0800
commit4125cb8b6550521126fb5023734abde62c7aef16 (patch)
treeccc500e961d006651868404d6eaa38381660b484 /lisp/cus-theme.el
parente0fe1d55893865df47efceb68551c245f12ceda3 (diff)
downloademacs-4125cb8b6550521126fb5023734abde62c7aef16.tar.gz
Fix interaction of load-theme with cust-theme.el.
* lisp/custom.el (load-theme): Even if NO-ENABLE arg is t, reenable the theme if it was previously enabled before (Bug#11031). * lisp/cus-theme.el (customize-create-theme, custom-theme-revert): Doc fixes.
Diffstat (limited to 'lisp/cus-theme.el')
-rw-r--r--lisp/cus-theme.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/cus-theme.el b/lisp/cus-theme.el
index ba2fa969fc4..606033f915c 100644
--- a/lisp/cus-theme.el
+++ b/lisp/cus-theme.el
@@ -81,7 +81,9 @@ Do not call this mode function yourself. It is meant for internal use."
(defun customize-create-theme (&optional theme buffer)
"Create or edit a custom theme.
THEME, if non-nil, should be an existing theme to edit. If THEME
-is `user', provide an option to remove these as custom settings.
+is `user', the resulting *Custom Theme* buffer also contains a
+checkbox for removing the theme settings specified in the buffer
+from the Custom save file.
BUFFER, if non-nil, should be a buffer to use; the default is
named *Custom Theme*."
(interactive)
@@ -209,6 +211,8 @@ remove them from your saved Custom file.\n\n"))
(message "")))
(defun custom-theme-revert (_ignore-auto noconfirm)
+ "Revert the current *Custom Theme* buffer.
+This is the `revert-buffer-function' for `custom-new-theme-mode'."
(when (or noconfirm (y-or-n-p "Discard current changes? "))
(customize-create-theme custom-theme--save-name (current-buffer))))