Variable: amalgamating-undo-limit
amalgamating-undo-limit is a variable defined in simple.el.gz.
Value
20
Documentation
The maximum number of changes to possibly amalgamate when undoing changes.
The undo command will normally consider "similar" changes
(like inserting characters) to be part of the same change. This
is called "amalgamating" the changes. This variable says what
the maximum number of changes considered is when amalgamating. A
value of 1 means that nothing is amalgamated.
Probably introduced at or before Emacs version 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defvar amalgamating-undo-limit 20
"The maximum number of changes to possibly amalgamate when undoing changes.
The `undo' command will normally consider \"similar\" changes
(like inserting characters) to be part of the same change. This
is called \"amalgamating\" the changes. This variable says what
the maximum number of changes considered is when amalgamating. A
value of 1 means that nothing is amalgamated.")