(show-paren-command-hook): Cope if matching-paren gives nil.

This commit is contained in:
Richard M. Stallman 1994-08-11 02:42:22 +00:00
parent 9d591df883
commit 080d320dce

View file

@ -71,8 +71,9 @@
(let ((beg (min pos oldpos)) (end (max pos oldpos)))
(and (/= (char-syntax (char-after beg)) ?\$)
(setq mismatch
(/= (char-after (1- end))
(matching-paren (char-after beg)))))))
(not (eq (char-after (1- end))
;; This can give nil.
(matching-paren (char-after beg))))))))
;; If they don't properly match, use a different face,
;; or print a message.
(if mismatch