]> git.eshelyaron.com Git - emacs.git/commit
Improve Electric Pair mode documentation (bug#78021)
authorStephen Berman <stephen.berman@gmx.net>
Sat, 10 May 2025 14:25:05 +0000 (16:25 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 May 2025 20:50:05 +0000 (22:50 +0200)
commit94ccf4f6f719f57c4af09af382faddf407ed6c6a
treea966c627e1341c3f852d86fba993017f8184bf40
parent6fcab5a203fadefc21efc11e806f71fda96e5a89
Improve Electric Pair mode documentation (bug#78021)

* doc/emacs/programs.texi (Matching): Clarify and improve
documentation of Electric Pair mode.

* lisp/elec-pair.el: Improve description in header line.  Add text
and a reference to the Emacs user manual in the Commentary section.
(electric-pair-skip-self, electric-pair-inhibit-predicate)
(electric-pair-preserve-balance)
(electric-pair-delete-adjacent-pairs)
(electric-pair-open-newline-between-pairs)
(electric-pair-skip-whitespace)
(electric-pair-skip-whitespace-function)
(electric-pair-analyze-conversion)
(electric-pair--skip-whitespace)
(electric-pair-text-syntax-table, electric-pair--with-syntax)
(electric-pair-syntax-info, electric-pair--insert)
(electric-pair--syntax-ppss, electric-pair--balance-info)
(electric-pair-inhibit-if-helps-balance)
(electric-pair-skip-if-helps-balance)
(electric-pair-open-newline-between-pairs-psif)
(electric-pair-mode): Clarify and improve doc strings and some comments.
(electric-pair-post-self-insert-function): Restructure doc string
to shorten overlong first line, and reformat overlong lines of code.

(cherry picked from commit bb735331650a9b5ac3c28ed8e1d9459059bd1195)
lisp/elec-pair.el