From 407104459b86a40e03f5f1f323d28ad935721ef3 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sun, 24 Apr 2022 18:16:19 +0800 Subject: [PATCH] org-fold: Honour `org-fold-show-context-detail' for isearch * lisp/org-fold.el (org-fold--isearch-reveal): Call `org-fold-show-visibility'. The previously used `org-fold-show-set-visibility' does not accept context as argument. Reported in https://orgmode.org/list/8735i5gd8n.fsf@gmail.com --- lisp/org-fold.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-fold.el b/lisp/org-fold.el index 1484af72e..0c978a377 100644 --- a/lisp/org-fold.el +++ b/lisp/org-fold.el @@ -897,7 +897,7 @@ go to the parent and show the entire tree." (defun org-fold--isearch-reveal (&rest _) "Reveal text at POS found by isearch." - (org-fold-show-set-visibility 'isearch)) + (org-fold-show-context 'isearch)) ;;; Handling changes in folded elements