From 5630536d04613476e13b413fe05fd0bbff4107ca Mon Sep 17 00:00:00 2001 From: Greg Sexton Date: Sun, 29 Jan 2017 16:05:25 +0000 Subject: [PATCH] Support indirect buffers --- origami.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/origami.el b/origami.el index e525df1..c7539fc 100644 --- a/origami.el +++ b/origami.el @@ -811,7 +811,9 @@ Key bindings: 'origami-find-occurrence-show-node nil t) (setq next-error-move-function (lambda (ignored pos) (goto-char pos) - (call-interactively 'origami-show-node)))) + (call-interactively 'origami-show-node))) + (add-hook 'clone-indirect-buffer-hook + (lambda () (origami-reset (current-buffer))))) (remove-hook 'occur-mode-find-occurrence-hook 'origami-find-occurrence-show-node t) (setq next-error-move-function nil))