branch: master commit a34e532a3f69f511470787c9b4a8b7ae3e18382f Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
swiper.el: Use show-all if outline-show-all isn't there Fixes #312 --- swiper.el | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/swiper.el b/swiper.el index 45492a1..b67cc79 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))))