From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Hong Xu Newsgroups: gmane.emacs.bugs Subject: bug#24734: Minor improvement of the doc of lisp/paren.el Date: Wed, 02 Nov 2016 12:06:12 -0700 Message-ID: <87pomdn1ln.fsf@topbug.net> References: <8737jkmad5.fsf@topbug.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1478113670 23580 195.159.176.226 (2 Nov 2016 19:07:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2016 19:07:50 +0000 (UTC) User-Agent: mu4e 0.9.17; emacs 25.1.50.2 To: 24734@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 02 20:07:46 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c20sQ-0001Nj-HM for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2016 20:07:10 +0100 Original-Received: from localhost ([::1]:57113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c20sT-0002Sh-Bf for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2016 15:07:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c20sN-0002SX-8R for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 15:07:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c20sI-0003CZ-9p for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 15:07:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53715) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c20sI-0003CV-6L for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 15:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c20sH-0006R9-Uo for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2016 15:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hong Xu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Nov 2016 19:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24734 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24734-submit@debbugs.gnu.org id=B24734.147811358724700 (code B ref 24734); Wed, 02 Nov 2016 19:07:01 +0000 Original-Received: (at 24734) by debbugs.gnu.org; 2 Nov 2016 19:06:27 +0000 Original-Received: from localhost ([127.0.0.1]:40881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c20ri-0006QK-Sg for submit@debbugs.gnu.org; Wed, 02 Nov 2016 15:06:27 -0400 Original-Received: from sender163-mail.zoho.com ([74.201.84.163]:21428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c20ri-0006QD-5t for 24734@debbugs.gnu.org; Wed, 02 Nov 2016 15:06:26 -0400 Original-Received: from localhost (cpe-104-32-170-214.socal.res.rr.com [104.32.170.214]) by mx.zohomail.com with SMTPS id 1478113583231756.6951474241652; Wed, 2 Nov 2016 12:06:23 -0700 (PDT) In-reply-to: <8737jkmad5.fsf@topbug.net> X-Zoho-Virus-Status: 1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:125279 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain OK, actually I never received the response email, don't know why. The attachment is an updated version. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=paren.patch Content-Transfer-Encoding: quoted-printable diff --git a/lisp/paren.el b/lisp/paren.el index 53eb50077f25..100cc58f0cbe 100644 =2D-- 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.") =20 (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 (=3D dir 1) pos (1+ pos)) mismatch))))))) =20 =2D;; Find the place to show, if there is one, =2D;; 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 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJYGjkkAAoJECZsfTOCL4R4WXsP/RHvQ58hyTkOXzauweyDDq5N +i2drt9jojl4BXIS1O6kANQdEZimQ3y8cPh9bS1YQerkOGTryIQZ8NR4VplCD8YN BO+u68hhQ52xLt4+ctjFewSOFUsy0tqSVUGSYHy5//UL3+T5n8t7xP0L8vhUA8OX FPNp0kI655N9izPJWHhDvXJBt8/X9ZetrMtFt+ySXtdMylxqSDYuW6ZAHZt8GG8c 7CmW/8HqgKad918ZQ+VYu+oHmDQ6TTuiP952EX6yPIGqTBN4QDhPHK6ZrGhP4nNo N8H7f8E1xeaW9BoyUqUh3eHWeay7nHjConHENhZebxTt0bKHNgq56X7p5jP2TYD/ 5IeAU1hrAxVH1320xlN61FWf3a/QhzNQZWshzSn0GpBo/vdTmz7uqGhxIb9Z5WrY sPi3rW5/F02TxG6PwON5Z253oLmqmuSXnYzeNS5eM2J7Qa2j/SLodSiBm4PJlMcl Uk7XXsIlsl7buLpljALp/4y6vlhqUBBJd8yYTRoRxhETOiUZeL8i7Dhv3MVW6g+y dn2KpDwI80/tUXx+nCXB9T9juKCFvvcD+QXlW9WVhvYOaKJesualMHQ2y16F83us hwoFisclUs9d2m4sJ6J1OEInWf/jNXpKF4LhC+CM32LTLm5P7bH2bKpEUkil0flR NkzWtUAJhPrQxlsSEnGr =O9Yr -----END PGP SIGNATURE----- --==-=-=--