]> git.eshelyaron.com Git - emacs.git/commit
Teach Electric Pair mode about prefix arguments
authorEshel Yaron <me@eshelyaron.com>
Sat, 21 Sep 2024 10:15:16 +0000 (12:15 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Sep 2024 11:59:02 +0000 (13:59 +0200)
commitcc9c7c45a25d51bdaf0b82a9ea1d1d28588303e5
tree6b350ffceda6d3ac97c81783ae4d622d3734d1db
parent9e2a7eb025864f3d1a4731b1f21355fc92b19ce4
Teach Electric Pair mode about prefix arguments

* lisp/elec-pair.el (electric-pair--insert): New arg TIMES.
(electric-pair-inhibit-if-helps-balance)
(electric-pair-post-self-insert-function)
(electric-pair-open-newline-between-pairs-psif)
(electric-pair-skip-if-helps-balance): Respect prefix arg.
(electric-pair-delete-pair): Delete ARG chars, not just 1.
* test/lisp/electric-tests.el (autowrapping-multi-1)
(autowrapping-multi-2): New tests.
* doc/emacs/programs.texi (Matching): Mention prefix arg
support in Electric Pair mode documentation.
* etc/NEWS: Announce it.  (Bug#72437)

(cherry picked from commit a7192fd7b7355f13ff3002dba14c6acdabad5b5e)
doc/emacs/programs.texi
etc/NEWS
test/lisp/electric-tests.el