]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/paren.el (show-paren--default, show-paren-function): Add docstring.
authorHong Xu <hong@topbug.net>
Wed, 2 Nov 2016 19:06:12 +0000 (12:06 -0700)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 14 Mar 2017 04:07:14 +0000 (00:07 -0400)
lisp/paren.el

index 4a83fa1cb4c426914ba6bac74c5807d223171f1e..562831dae9a52ea3094409c526285aaff8f23acc 100644 (file)
@@ -181,6 +181,9 @@ if there's no opener/closer near point, or a list of the form
 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 @@ Where HERE-BEG..HERE-END is expected to be near point.")
                  (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