emacs-devel
[Top][All Lists]
Advanced

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

Re: guaranteed undo boundaries


From: Stefan Monnier
Subject: Re: guaranteed undo boundaries
Date: Thu, 07 Feb 2013 11:28:36 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> ...where I need to come up with some sensible code for a new
> function remove-all-boundaries-between.

Something like:

  (let ((list buffer-undo-list))
    (while (and (cdr list) (not (eq (cdr list) bottom)))
      (if (null (cadr list))
          (setcdr list (cddr list))
        (setq list (cdr list)))))

-- Stefan



reply via email to

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