diff options
| author | Eli Zaretskii | 2025-04-24 12:07:56 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-24 12:07:56 +0300 |
| commit | a975232c0fd7bbcce39f904518bd068a879ea4f0 (patch) | |
| tree | b693061df3d8dadc63ff8ceb89cf183db0bcd239 /doc | |
| parent | 29142dab3169b650c87a08b1313757a899f321cc (diff) | |
| download | emacs-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.texi | 25 |
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 |
| 967 | make it easy to see how and whether parentheses (or other delimiters) | 967 | it easy to see how and whether parentheses (or other paired delimiters) |
| 968 | match up. | 968 | match 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 |
| 1067 | insert matching delimiters: parentheses, braces, brackets, etc. | 1067 | insert matching delimiters: parentheses, braces, brackets, etc. |
| 1068 | Whenever you insert an opening delimiter, the matching closing | 1068 | Whenever you insert an opening delimiter, the matching closing delimiter |
| 1069 | delimiter is automatically inserted as well, leaving point between the | 1069 | is automatically inserted as well, leaving point between the two. |
| 1070 | two. Conversely, when you insert a closing delimiter over an existing | 1070 | However, if you insert a closing delimiter where one already exists |
| 1071 | one, no insertion takes places, and that position is simply skipped | 1071 | (probably a mistake, since typing the opening delimiter inserted the |
| 1072 | over. If the region is active (@pxref{Mark}), insertion of a | 1072 | closing one for you), Emacs simply moves point to after the closing |
| 1073 | delimiter operates on the region: the characters in the region are | 1073 | delimiter, skipping the insertion. If the region is active |
| 1074 | enclosed in a pair of matching delimiters, leaving point after the | 1074 | (@pxref{Mark}), insertion of a delimiter operates on the region: the |
| 1075 | delimiter you typed. | 1075 | characters in the region are enclosed in a pair of matching delimiters, |
| 1076 | leaving point after the delimiter you typed. If you provide a prefix | ||
| 1077 | argument when inserting a delimiter, the numeric value of that prefix | ||
| 1078 | argument specifies the number of pairs to insert. | ||
| 1076 | 1079 | ||
| 1077 | These variables control additional features of Electric Pair mode: | 1080 | These variables control additional features of Electric Pair mode: |
| 1078 | 1081 | ||