aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2018-02-17 19:28:01 +0200
committerEli Zaretskii2018-02-17 19:28:01 +0200
commitf138bca8ca2db89d663a2cf8d80e6368437e4e3c (patch)
tree6b869276e35f3ef206b184aea39a123f4e686ba0 /lisp
parentf74ab96483166fdc32a047eebc98916dd5981eb4 (diff)
downloademacs-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 'lisp')
-rw-r--r--lisp/elec-pair.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/elec-pair.el b/lisp/elec-pair.el
index af9a44c844c..97049a7d9d9 100644
--- a/lisp/elec-pair.el
+++ b/lisp/elec-pair.el
@@ -580,8 +580,11 @@ the mode if ARG is omitted or nil.
580 580
581Electric Pair mode is a global minor mode. When enabled, typing 581Electric Pair mode is a global minor mode. When enabled, typing
582an open parenthesis automatically inserts the corresponding 582an open parenthesis automatically inserts the corresponding
583closing parenthesis. (Likewise for brackets, etc.). To toggle 583closing parenthesis, and vice versa. (Likewise for brackets, etc.).
584the mode in a single buffer, use `electric-pair-local-mode'." 584If the region is active, the parentheses (brackets, etc.) are
585inserted around the region instead.
586
587To toggle the mode in a single buffer, use `electric-pair-local-mode'."
585 :global t :group 'electricity 588 :global t :group 'electricity
586 (if electric-pair-mode 589 (if electric-pair-mode
587 (progn 590 (progn