From 3fda301b07ce2c38daab4363d03ddfe56afca895 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 14 Mar 2012 14:19:08 +0100 Subject: [PATCH] org-element: Unhide contents of collapsed elements before entering them * contrib/lisp/org-element.el (org-element-down): Unhide contents of collapsed elements before entering them. --- contrib/lisp/org-element.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/lisp/org-element.el b/contrib/lisp/org-element.el index 36e04080b..3cc5c9842 100644 --- a/contrib/lisp/org-element.el +++ b/contrib/lisp/org-element.el @@ -3919,6 +3919,8 @@ modified." ((eq (org-element-type element) 'plain-list) (forward-char)) ((memq (org-element-type element) org-element-greater-elements) + ;; If contents are hidden, first disclose them. + (when (org-element-property :hiddenp element) (org-cycle)) (goto-char (org-element-property :contents-begin element))) (t (error "No inner element")))))