GNU Emacs Lisp Reference Manual
This section describes the mechanism by which Emacs shows a matching open parenthesis when the user inserts a close parenthesis.
blink-paren-function may be nil, in which case nothing is done. Please note: This variable was namedblink-paren-hookin older Emacs versions, but since it is not called with the standard convention for hooks, it was renamed toblink-paren-functionin version 19.
nil, then blink-matching-open does nothing.blink-paren-function. It assumes that point follows a character with close parenthesis syntax and moves the cursor momentarily to the matching opening character. If that character is not already on the screen, it displays the character's context in the echo area. To avoid long delays, this function does not search farther than blink-matching-paren-distance characters. Here is an example of calling this function explicitly.
(defun interactive-blink-matching-open ()
"Indicate momentarily the start of sexp before point."
(interactive)
(let ((blink-matching-paren-distance
(buffer-size))
(blink-matching-paren t))
(blink-matching-open)))