From 8eba2b57ca518d691d7b7cbb7f5050ba3945342f Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 16 Jul 2021 12:55:21 +0200 Subject: [PATCH] Allow hiding variables in Customize * lisp/cus-edit.el (custom-toggle-hide-variable): Allow closing an option even if there are unsaved changes (bug#11655). --- lisp/cus-edit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index a8b2640b7d3..980a1cc7179 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -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) -- 2.39.2