From 09a5b5fd0118601b3e6ebb8cec3e071a48030920 Mon Sep 17 00:00:00 2001 From: Greg Sexton Date: Mon, 5 May 2014 11:35:23 +0100 Subject: [PATCH] Make reset more robust --- origami.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/origami.el b/origami.el index 1e4e1f2..ef74b77 100644 --- a/origami.el +++ b/origami.el @@ -527,11 +527,7 @@ as to ensure seeing where POINT is." (defun origami-reset (buffer) (interactive (list (current-buffer))) - (let ((tree (origami-get-fold-tree buffer))) - (origami-fold-diff tree (origami-store-cached-tree buffer (origami-fold-root-node)) - (origami-create-overlay-from-fold-tree-fn buffer) - (origami-delete-overlay-from-fold-tree-fn buffer) - (origami-change-overlay-from-fold-node-fn buffer))) + (origami-store-cached-tree buffer (origami-fold-root-node)) (origami-remove-all-overlays buffer)) ;;; minor mode