unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24734: [PATCH] Minor improvement of the doc of lisp/paren.el.
@ 2016-10-18 20:16 Hong Xu
  2016-10-19  8:06 ` Thien-Thi Nguyen
  2016-10-25 20:39 ` bug#24734: " Hong Xu
  0 siblings, 2 replies; 5+ messages in thread
From: Hong Xu @ 2016-10-18 20:16 UTC (permalink / raw)
  To: 24734; +Cc: Hong Xu

---

These are my suggested imporvements of the docs in lisp/paren.el, after
I looked into the code for the first time.

---
 lisp/paren.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/paren.el b/lisp/paren.el
index 53eb50077f25..f0df1ff2ea4d 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -181,6 +181,7 @@ show-paren-data-function
 Where HERE-BEG..HERE-END is expected to be near point.")
 
 (defun show-paren--default ()
+  "The default value of `show-paren-data-function'."
   (let* ((temp (show-paren--locate-near-paren))
 	 (dir (car temp))
 	 (outside (cdr temp))
@@ -233,9 +234,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
-- 
2.1.4






^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-14  4:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 20:16 bug#24734: [PATCH] Minor improvement of the doc of lisp/paren.el Hong Xu
2016-10-19  8:06 ` Thien-Thi Nguyen
2016-10-25 20:39 ` bug#24734: " Hong Xu
2016-11-02 19:06   ` Hong Xu
2017-03-14  4:08     ` npostavs

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).