GNU bug report logs -
#24734
[PATCH] Minor improvement of the doc of lisp/paren.el.
Previous Next
Reported by: Hong Xu <hong <at> topbug.net>
Date: Tue, 18 Oct 2016 20:41:02 UTC
Severity: minor
Tags: fixed, patch
Fixed in version 25.2
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
Message #14 received at 24734 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
OK, actually I never received the response email, don't know why.
The attachment is an updated version.
[paren.patch (text/x-diff, inline)]
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 (application/pgp-signature, inline)]
This bug report was last modified 8 years and 68 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.