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.
This commit is contained in:
parent
07ac15ef72
commit
3fda301b07
|
@ -3919,6 +3919,8 @@ modified."
|
||||||
((eq (org-element-type element) 'plain-list)
|
((eq (org-element-type element) 'plain-list)
|
||||||
(forward-char))
|
(forward-char))
|
||||||
((memq (org-element-type element) org-element-greater-elements)
|
((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)))
|
(goto-char (org-element-property :contents-begin element)))
|
||||||
(t (error "No inner element")))))
|
(t (error "No inner element")))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue