summaryrefslogtreecommitdiff
path: root/helm-utils.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-12-24 07:57:29 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-12-24 07:57:29 +0100
commit7114f997281dd775ef7746d9168894070f042e01 (patch)
treec828ce3e69916071276344313d92490f0413bde1 /helm-utils.el
parent5b2057c7755f6ea20e1ea011c6fb992d12650161 (diff)
Fix compatibility with emacs-24
* helm-utils.el (helm-goto-char): outline-show-subtree doesn't exists in emacs-24.
Diffstat (limited to 'helm-utils.el')
-rw-r--r--helm-utils.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helm-utils.el b/helm-utils.el
index 5d202c85..d94acc4e 100644
--- a/helm-utils.el
+++ b/helm-utils.el
@@ -409,7 +409,7 @@ Default is `helm-current-buffer'."
(let ((fn (cond ((eq major-mode 'org-mode) #'org-reveal)
((and (boundp 'outline-minor-mode)
outline-minor-mode)
- #'outline-show-subtree))))
+ (lambda () (outline-flag-subtree nil))))))
;; outline may fail in some conditions e.g. with markdown enabled
;; (issue #1919).
(condition-case nil