Subject: [PATCH] Improve document for electric-pair-mode.
From: Hong Xu <[email-masked]>
To: [email-masked]
Date: Thu, 24 Nov 2016 01:19:18 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* programs.texi (Matching): Add indices for `electric-pair-*'
	variables and minor improvements of documentation.
---
 doc/emacs/programs.texi | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index 0c79d9c3de13..218750673100 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -876,21 +876,25 @@ Matching
 features of Electric Pair mode:
 
 @itemize @bullet
+@vindex electric-pair-preserve-balance
 @item
 @code{electric-pair-preserve-balance}, when non-@code{nil}, makes the
 default pairing logic balance out the number of opening and closing
 delimiters.
 
+@vindex electric-pair-delete-adjacent-pairs
 @item
 @code{electric-pair-delete-adjacent-pairs}, when non-@code{nil}, makes
 backspacing between two adjacent delimiters also automatically delete
 the closing delimiter.
 
+@vindex electric-pair-open-newline-between-pairs
 @item
 @code{electric-pair-open-newline-between-pairs}, when non-@code{nil},
-makes inserting inserting a newline between two adjacent pairs also
-automatically open and extra newline after point.
+makes inserting a newline between two adjacent pairs also
+automatically insert an extra newline after point.
 
+@vindex electric-pair-skip-whitespace
 @item
 @code{electric-pair-skip-whitespace}, when non-@code{nil}, causes the minor
 mode to skip whitespace forward before deciding whether to skip over
-- 
2.1.4