]> git.eshelyaron.com Git - emacs.git/commit
(custom--standard-value-p): New function
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 1 Apr 2025 22:06:31 +0000 (18:06 -0400)
committerEshel Yaron <me@eshelyaron.com>
Thu, 3 Apr 2025 16:50:47 +0000 (18:50 +0200)
commit3d4962e9857d9ba04c475868614b002a09d18615
tree0f2c4e0f183c3cc9b396781eb3148b3bf5e7e68d
parentae4de7044ff4b9a54d2c81d1dba81542e3eb17b6
(custom--standard-value-p): New function

* lisp/cus-edit.el (custom-variable-state)
(custom-variable-mark-to-reset-standard): Use `custom--standard-value-p`.

* lisp/custom.el (custom--standard-value-p): New function.
(customize-mark-to-save, custom-push-theme, enable-theme): Use it.

* lisp/help-fns.el (describe-variable): Use `custom--standard-value`.
Extracted from `customize-mark-to-save` by with `ignore-errors`
replaced by `with-demoted-errors`.

(cherry picked from commit 71b3298c0e813ba1432e75370c460eea5caf72d5)
lisp/cus-edit.el
lisp/custom.el
lisp/help-fns.el