aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2025-04-24 12:07:56 +0300
committerEli Zaretskii2025-04-24 12:07:56 +0300
commita975232c0fd7bbcce39f904518bd068a879ea4f0 (patch)
treeb693061df3d8dadc63ff8ceb89cf183db0bcd239 /doc
parent29142dab3169b650c87a08b1313757a899f321cc (diff)
downloademacs-a975232c0fd7bbcce39f904518bd068a879ea4f0.tar.gz
emacs-a975232c0fd7bbcce39f904518bd068a879ea4f0.zip
; * doc/emacs/programs.texi (Matching): Fix wording (bug#78021).
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/programs.texi25
1 files changed, 14 insertions, 11 deletions
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index e155092676b..820a772104e 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -960,11 +960,11 @@ argument specifies the number of levels to go down.
960 960
961@node Matching 961@node Matching
962@subsection Matching Parentheses 962@subsection Matching Parentheses
963@cindex matching parentheses 963@cindex matching, parentheses and other paired delimiters
964@cindex parentheses, displaying matches 964@cindex parentheses, displaying matches
965 965
966 Emacs has a number of @dfn{parenthesis matching} features, which 966 Emacs has a number of @dfn{parenthesis matching} features, which make
967make it easy to see how and whether parentheses (or other delimiters) 967it easy to see how and whether parentheses (or other paired delimiters)
968match up. 968match up.
969 969
970 Whenever you type a self-inserting character that is a closing 970 Whenever you type a self-inserting character that is a closing
@@ -1065,14 +1065,17 @@ nonblank line.
1065@findex electric-pair-mode 1065@findex electric-pair-mode
1066 Electric Pair mode, a global minor mode, provides a way to easily 1066 Electric Pair mode, a global minor mode, provides a way to easily
1067insert matching delimiters: parentheses, braces, brackets, etc. 1067insert matching delimiters: parentheses, braces, brackets, etc.
1068Whenever you insert an opening delimiter, the matching closing 1068Whenever you insert an opening delimiter, the matching closing delimiter
1069delimiter is automatically inserted as well, leaving point between the 1069is automatically inserted as well, leaving point between the two.
1070two. Conversely, when you insert a closing delimiter over an existing 1070However, if you insert a closing delimiter where one already exists
1071one, no insertion takes places, and that position is simply skipped 1071(probably a mistake, since typing the opening delimiter inserted the
1072over. If the region is active (@pxref{Mark}), insertion of a 1072closing one for you), Emacs simply moves point to after the closing
1073delimiter operates on the region: the characters in the region are 1073delimiter, skipping the insertion. If the region is active
1074enclosed in a pair of matching delimiters, leaving point after the 1074(@pxref{Mark}), insertion of a delimiter operates on the region: the
1075delimiter you typed. 1075characters in the region are enclosed in a pair of matching delimiters,
1076leaving point after the delimiter you typed. If you provide a prefix
1077argument when inserting a delimiter, the numeric value of that prefix
1078argument specifies the number of pairs to insert.
1076 1079
1077These variables control additional features of Electric Pair mode: 1080These variables control additional features of Electric Pair mode:
1078 1081