I wondered why the jch's with-undo-collapse
macro (or something like that) isn't an emacs built-in yet.
Is it safe enough? Is there a built-in alternative?
I mean something that can be applied like in the jcs's example of usage:
(defun test-no-collapse ()
(interactive)
(insert "toto")
(undo-boundary)
(insert "titi"))
(defun test-collapse ()
(interactive)
(with-undo-collapse
(insert "toto")
(undo-boundary)
(insert "titi")))