Lars Ingebrigtsen writes: > Mauro Aranda writes: > >> I wonder if we could just document the :type-error property. So >> anybody that uses a custom :match function with additional checks can >> put there the information they like to show the user when something goes >> wrong. So the defcustom posted would be something like: >> >> (defcustom bounded-num 999 >> "Positive, bounded number" >> :type '(integer :match (lambda (widget value) (and (integerp value) >> (> value 0) >> (< value 1000))) >> :type-error "Value should be an integer between 0 and 1000")) >> >> That's easy, and would solve the main problem here. WDYT? > > I think that's a very good idea. Great! Here's my attempt: