Function: Custom-reset-standard

Custom-reset-standard is an interactive and byte-compiled function defined in cus-edit.el.gz.

Signature

(Custom-reset-standard &rest IGNORE)

Documentation

Erase all customizations (either current or saved) in current buffer.

The immediate result is to restore them to their standard values. This operation eliminates any saved values for the group members, making them as if they had never been customized at all.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cus-edit.el.gz
(defun Custom-reset-standard (&rest _ignore)
  "Erase all customizations (either current or saved) in current buffer.
The immediate result is to restore them to their standard values.
This operation eliminates any saved values for the group members,
making them as if they had never been customized at all."
  (interactive)
  ;; Bind these temporarily.
  (let ((custom-reset-standard-variables-list '(t))
	(custom-reset-standard-faces-list '(t)))
    (if (custom-command-apply
	 (lambda (widget)
	   (and (or (null (widget-get widget :custom-standard-value))
		    (widget-apply widget :custom-standard-value))
		(memq (widget-get widget :custom-state)
		      '(modified set changed saved rogue))
		(widget-apply widget :custom-mark-to-reset-standard)))
	 "The settings will revert to their default values, in this
and future sessions.  Really erase customizations? " t)
	(custom-reset-standard-save-and-update))))