; * doc/emacs/programs.texi (Matching): Fix wording (bug#78021).

This commit is contained in:
Eli Zaretskii 2025-04-24 12:07:56 +03:00
parent 29142dab31
commit a975232c0f

View file

@ -960,11 +960,11 @@ argument specifies the number of levels to go down.
@node Matching @node Matching
@subsection Matching Parentheses @subsection Matching Parentheses
@cindex matching parentheses @cindex matching, parentheses and other paired delimiters
@cindex parentheses, displaying matches @cindex parentheses, displaying matches
Emacs has a number of @dfn{parenthesis matching} features, which Emacs has a number of @dfn{parenthesis matching} features, which make
make it easy to see how and whether parentheses (or other delimiters) it easy to see how and whether parentheses (or other paired delimiters)
match up. match up.
Whenever you type a self-inserting character that is a closing Whenever you type a self-inserting character that is a closing
@ -1065,14 +1065,17 @@ nonblank line.
@findex electric-pair-mode @findex electric-pair-mode
Electric Pair mode, a global minor mode, provides a way to easily Electric Pair mode, a global minor mode, provides a way to easily
insert matching delimiters: parentheses, braces, brackets, etc. insert matching delimiters: parentheses, braces, brackets, etc.
Whenever you insert an opening delimiter, the matching closing Whenever you insert an opening delimiter, the matching closing delimiter
delimiter is automatically inserted as well, leaving point between the is automatically inserted as well, leaving point between the two.
two. Conversely, when you insert a closing delimiter over an existing However, if you insert a closing delimiter where one already exists
one, no insertion takes places, and that position is simply skipped (probably a mistake, since typing the opening delimiter inserted the
over. If the region is active (@pxref{Mark}), insertion of a closing one for you), Emacs simply moves point to after the closing
delimiter operates on the region: the characters in the region are delimiter, skipping the insertion. If the region is active
enclosed in a pair of matching delimiters, leaving point after the (@pxref{Mark}), insertion of a delimiter operates on the region: the
delimiter you typed. characters in the region are enclosed in a pair of matching delimiters,
leaving point after the delimiter you typed. If you provide a prefix
argument when inserting a delimiter, the numeric value of that prefix
argument specifies the number of pairs to insert.
These variables control additional features of Electric Pair mode: These variables control additional features of Electric Pair mode: