all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* compacting buffer-undo-list
@ 2011-09-23 16:23 Le Wang
  0 siblings, 0 replies; only message in thread
From: Le Wang @ 2011-09-23 16:23 UTC (permalink / raw)
  To: GNU Emacs List

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

Hi,

In rebox2, I do a lot of erasing and recreating box borders, often the new
border is exactly the same as the previous.  For example if text is pasted
into a box, rebox2 will first unbox the region, yank, and rebox.  This means
that a lot of not very useful changes gets put into the undo-list.  With
modern machines, it's not a huge concern, but I would like to make this more
efficient.

How can I minimize this?  For example is there a way to take a snapshot of a
region (A) and a new region (B), and create the minimal number of edit steps
that gets A->B?  Or even better would be if I can leave a marker on the
undo-list and say compact undo from now back to the marker.

-- 
Le

[-- Attachment #2: Type: text/html, Size: 737 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-23 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-23 16:23 compacting buffer-undo-list Le Wang

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.