diff options
| author | Eli Zaretskii | 2018-02-17 19:28:01 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-02-17 19:28:01 +0200 |
| commit | f138bca8ca2db89d663a2cf8d80e6368437e4e3c (patch) | |
| tree | 6b869276e35f3ef206b184aea39a123f4e686ba0 /doc | |
| parent | f74ab96483166fdc32a047eebc98916dd5981eb4 (diff) | |
| download | emacs-f138bca8ca2db89d663a2cf8d80e6368437e4e3c.tar.gz emacs-f138bca8ca2db89d663a2cf8d80e6368437e4e3c.zip | |
Improve documentation of 'electric-pair-mode'
* lisp/elec-pair.el (electric-pair-mode):
* doc/emacs/programs.texi (Matching): Document the operation of
electric-pair-mode when there's an active region. (Bug#30502)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/programs.texi | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index bafe5cc87be..b6bd173e4d9 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi | |||
| @@ -877,12 +877,17 @@ or the last, non-whitespace position on the line. | |||
| 877 | @cindex inserting matching parentheses | 877 | @cindex inserting matching parentheses |
| 878 | @findex electric-pair-mode | 878 | @findex electric-pair-mode |
| 879 | Electric Pair mode, a global minor mode, provides a way to easily | 879 | Electric Pair mode, a global minor mode, provides a way to easily |
| 880 | insert matching delimiters. Whenever you insert an opening delimiter, | 880 | insert matching delimiters: parentheses, braces, brackets, etc. |
| 881 | the matching closing delimiter is automatically inserted as well, | 881 | Whenever you insert an opening delimiter, the matching closing |
| 882 | leaving point between the two. Conversely, when you insert a closing | 882 | delimiter is automatically inserted as well, leaving point between the |
| 883 | delimiter over an existing one, no inserting takes places and that | 883 | two. Conversely, when you insert a closing delimiter over an existing |
| 884 | position is simply skipped over. These variables control additional | 884 | one, no insertion takes places, and that position is simply skipped |
| 885 | features of Electric Pair mode: | 885 | over. If the region is active (@pxref{Mark}), insertion of a |
| 886 | delimiter operates on the region: the characters in the region are | ||
| 887 | enclosed in a pair of matching delimiters, leaving point after the | ||
| 888 | delimiter you typed. | ||
| 889 | |||
| 890 | These variables control additional features of Electric Pair mode: | ||
| 886 | 891 | ||
| 887 | @itemize @bullet | 892 | @itemize @bullet |
| 888 | @item | 893 | @item |