Function: custom-theme-revert

custom-theme-revert is a byte-compiled function defined in cus-theme.el.gz.

Signature

(custom-theme-revert IGNORE-AUTO NOCONFIRM)

Documentation

Revert the current *Custom Theme* buffer.

This is the revert-buffer-function for custom-new-theme-mode.

Source Code

;; Defined in /usr/src/emacs/lisp/cus-theme.el.gz
(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))))