[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24734: Minor improvement of the doc of lisp/paren.el
From: |
Hong Xu |
Subject: |
bug#24734: Minor improvement of the doc of lisp/paren.el |
Date: |
Wed, 02 Nov 2016 12:06:12 -0700 |
User-agent: |
mu4e 0.9.17; emacs 25.1.50.2 |
OK, actually I never received the response email, don't know why.
The attachment is an updated version.
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
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#24734: Minor improvement of the doc of lisp/paren.el,
Hong Xu <=