>> |(defun ndk/paren-match-p () (let ((mismatch (nth 4 (show-paren--default)))) >> (not mismatch))) It seems working. Gabriele | > AFAIK It only checks the outside pair of parens. > E.g. it won't detect the problem in > > ((a + b]) > > > - Stefan it is good for me because it cover the case, e.g.: B=((1,3)∪(2,5]) Gabriele