Revert gnus-undo change.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 30 Aug 2010 18:39:04 +0000 (20:39 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 30 Aug 2010 18:39:04 +0000 (20:39 +0200)
lisp/ChangeLog
lisp/gnus-undo.el

index 9ab0d1e..402c25a 100644 (file)
@@ -2,6 +2,7 @@
 
        * gnus-undo.el (gnus-undo-register-1): Limit the undo actions to 100
        actions. 
+       (gnus-undo-register-1): Revert last change.
 
        * gnus-group.el (gnus-group-completing-read): Protect against not
        having completion-styles bound.
index 802ae63..d11b778 100644 (file)
@@ -154,9 +154,6 @@ FORMS may use backtick quote syntax."
      ;; We are on a boundary, so we create a new action.
      (gnus-undo-boundary
       (push (list function) gnus-undo-actions)
-      ;; Don't let the undo actions grow infinitely.
-      (when (> (length gnus-undo-actions) 100)
-       (setcdr (nthcdr 100 gnus-undo-actions) nil))
       (setq gnus-undo-boundary nil))
      ;; Prepend the function to an old action.
      (gnus-undo-actions