emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master a34e532 155/167: swiper.el: Use show-all if outline-show-a


From: Oleh Krehel
Subject: [elpa] master a34e532 155/167: swiper.el: Use show-all if outline-show-all isn't there
Date: Tue, 08 Dec 2015 10:50:41 +0000

branch: master
commit a34e532a3f69f511470787c9b4a8b7ae3e18382f
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]