mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
(show-paren-command-hook): Cope if matching-paren gives nil.
This commit is contained in:
parent
9d591df883
commit
080d320dce
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue