]> git.eshelyaron.com Git - emacs.git/commit
Fix comparison of current values for the key-sequence :type
authorMauro Aranda <maurooaranda@gmail.com>
Sat, 15 Feb 2025 12:26:46 +0000 (09:26 -0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 23 Feb 2025 08:21:18 +0000 (09:21 +0100)
commitf61db2a0378e2bedef209706c6a88da678d4a3f4
tree5b2dcd6ca408401557f5fe07866d3894ac2e7ee4
parenta0d3cd71820b4deb6894ab41c43d530651f724c5
Fix comparison of current values for the key-sequence :type

* lisp/cus-edit.el (custom-variable-modified-p): Round-trip
the option value before comparing it against the widget's value.
This mostly fixes comparison against the obsolete key-sequence
widget, but could fix other corner cases, when the widget
accepts different types as values.  (Bug#76156)

* test/lisp/cus-edit-tests.el (cus-edit-test-bug76156)
(cus-edit-test-bug76156-2): New test options.
(cus-edit-test-unedited-option): New test.

(cherry picked from commit f549cedaa2721bfc463fe714c00016aed21f7b5c)
lisp/cus-edit.el
test/lisp/cus-edit-tests.el