From: Richard M. Stallman Date: Thu, 23 Jun 1994 14:42:48 +0000 (+0000) Subject: (show-paren-command-hook): Handle close paren rather than open paren X-Git-Tag: emacs-19.34~7831 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cde4c890f1394a839a1e7ea3d71ac88e1d13071a;p=emacs.git (show-paren-command-hook): Handle close paren rather than open paren if point is between the two. --- diff --git a/lisp/paren.el b/lisp/paren.el index 74258124be8..7ed85b56dfe 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -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