Variable: apheleia-max-alignment-size
apheleia-max-alignment-size is a customizable variable defined in
apheleia-rcs.el.
Value
400
Documentation
Maximum size for diff regions that will have point aligned.
Apheleia uses a dynamic programming algorithm to determine where point should be placed within a diff region, but this algorithm has quadratic runtime so it will lock up Emacs if it is run on a diff region that is too large. The value of this variable serves as a limit on the input size to the algorithm; larger diff regions will still be applied, but Apheleia won't try to move point correctly.
Source Code
;; Defined in /nix/store/lwcwryzabcmvjcwwzzs65jrwf7p7d7cs-emacs-packages-deps/share/emacs/site-lisp/elpa/apheleia-20260915.1628/apheleia-rcs.el
(defcustom apheleia-max-alignment-size 400
"Maximum size for diff regions that will have point aligned.
Apheleia uses a dynamic programming algorithm to determine where
point should be placed within a diff region, but this algorithm
has quadratic runtime so it will lock up Emacs if it is run on a
diff region that is too large. The value of this variable serves
as a limit on the input size to the algorithm; larger diff
regions will still be applied, but Apheleia won't try to move
point correctly."
:type 'integer
:group 'apheleia)