unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Hong Xu <hong@topbug.net>
To: 24734@debbugs.gnu.org
Subject: bug#24734: Minor improvement of the doc of lisp/paren.el
Date: Wed, 02 Nov 2016 12:06:12 -0700	[thread overview]
Message-ID: <87pomdn1ln.fsf@topbug.net> (raw)
In-Reply-To: <8737jkmad5.fsf@topbug.net>


[-- Attachment #1.1: Type: text/plain, Size: 107 bytes --]


OK, actually I never received the response email, don't know why.

The attachment is an updated version.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: paren.patch --]
[-- Type: text/x-diff, Size: 870 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  reply	other threads:[~2016-11-02 19:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2017-03-14  4:08     ` npostavs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pomdn1ln.fsf@topbug.net \
    --to=hong@topbug.net \
    --cc=24734@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).