diff --git a/lisp/paren.el b/lisp/paren.el index 53eb50077f25..100cc58f0cbe 100644 --- a/lisp/paren.el +++ b/lisp/paren.el @@ -181,6 +181,9 @@ show-paren-data-function Where HERE-BEG..HERE-END is expected to be near point.") (defun show-paren--default () + "Finds the opener/closer near point and its match. + +It is the default value of `show-paren-data-function'." (let* ((temp (show-paren--locate-near-paren)) (dir (car temp)) (outside (cdr temp)) @@ -233,9 +236,8 @@ show-paren--default (if (= dir 1) pos (1+ pos)) mismatch))))))) -;; Find the place to show, if there is one, -;; and show it until input arrives. (defun show-paren-function () + "Highlight the parentheses until the next input arrives." (let ((data (and show-paren-mode (funcall show-paren-data-function)))) (if (not data) (progn