]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow hiding variables in Customize
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 16 Jul 2021 10:55:21 +0000 (12:55 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 16 Jul 2021 10:55:21 +0000 (12:55 +0200)
* lisp/cus-edit.el (custom-toggle-hide-variable): Allow closing an
option even if there are unsaved changes (bug#11655).

lisp/cus-edit.el

index a8b2640b7d3682a9a49bbfe4d7c07cf98e758db7..980a1cc71793bfec0fb3e031adbd1bae41604db2 100644 (file)
@@ -2824,7 +2824,7 @@ the present value is saved to its :shown-value property instead."
                          (list (widget-value
                                 (car-safe
                                  (widget-get widget :children)))))
-           (error "There are unsaved changes")))
+           (message "Note: There are unsaved changes")))
        (widget-put widget :documentation-shown nil)
        (widget-put widget :custom-state 'hidden))
       (custom-redraw widget)