> I don't think there's code in Emacs which does what you want, so if you > really need to check proper pairing you're going to have to write the code. > > > Stefan FYI. NickD offers me this code https://emacs.stackexchange.com/a/81604/15606: |(defun ndk/paren-match-p () (let ((mismatch (nth 4 (show-paren--default)))) (not mismatch))) It seems working. Gabriele |