Lars Hansen wrote: >I suggest to use with-temp-buffer (and buffer-disable-undo) > > Does it ever make sense to save undo information in a temporary buffer? If not, I suggest to disable it in with-temp-buffer. Patch attached.