Commit cde4c890 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(show-paren-command-hook): Handle close paren rather than open paren

if point is between the two.
parent fc60327e
......@@ -48,10 +48,10 @@
(if (and window-system (not executing-kbd-macro) (sit-for 0))
(let (pos dir mismatch (oldpos (point))
(face show-paren-face))
(cond ((eq (char-syntax (following-char)) ?\()
(setq dir 1))
((eq (char-syntax (preceding-char)) ?\))
(setq dir -1)))
(cond ((eq (char-syntax (preceding-char)) ?\))
(setq dir -1))
((eq (char-syntax (following-char)) ?\()
(setq dir 1)))
(if dir
(save-excursion
(save-restriction
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment