From: Oleh Krehel Date: Sun, 29 Nov 2015 10:19:22 +0000 (+0100) Subject: swiper.el: Use show-all if outline-show-all isn't there X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/a34e532a3f69f511470787c9b4a8b7ae3e18382f swiper.el: Use show-all if outline-show-all isn't there Fixes #312 --- diff --git a/swiper.el b/swiper.el index 45492a18e..b67cc79ad 100644 --- a/swiper.el +++ b/swiper.el @@ -256,7 +256,9 @@ count." (progn (when (eq major-mode 'org-mode) (require 'outline) - (outline-show-all)) + (if (fboundp 'outline-show-all) + (outline-show-all) + (show-all))) (setq swiper-use-visual-line t)) (setq swiper-use-visual-line nil)) (let ((n-lines (count-lines (point-min) (point-max))))