help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to disable undo recording within a defun?


From: Michael Heerdegen
Subject: Re: How to disable undo recording within a defun?
Date: Fri, 17 Sep 2021 02:11:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> So maybe you're looking for `with-silent-modifications` which can be
> used when the modifications to the buffer are "negligible" (typically
> in the sense that they don't affect what would get saved into the file).

Another guess is that the OP wants multiple buffer changes to become a
single undo item.  Doable with change group amalgamating:

 (info "(elisp) Atomic Changes")

Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]