Kevin Rodgers <ihs_4664@yahoo.com> writes:
(let ((buffer-undo-list t))
(insert "xyz\n"))
Cool, thanks.
However, I was not pleased with the results in my case since the
ignored manipulations occurred near the top and near the bottom of the
buffer. So subsequent undos were very confused.
Here's a little more info. We have a radio button menu item that
performs these actions I've described. Currently, the undo will undo
the action stepwise, but the radio button will no longer represent
reality. Ideally, an undo would undo the entire set of actions in one
swoop, and set the radio button back to its previous setting. Is this
possible?