From: Lars Ingebrigtsen Date: Fri, 16 Jul 2021 10:55:21 +0000 (+0200) Subject: Allow hiding variables in Customize X-Git-Tag: emacs-28.0.90~1843 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8eba2b57ca518d691d7b7cbb7f5050ba3945342f;p=emacs.git 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). --- 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)