|
@@ -1199,6 +1199,8 @@ Allowed visibility spans are
|
|
|
ancestors show current headline and its direct ancestors; if
|
|
|
point is not on headline, also show entry
|
|
|
|
|
|
+ ancestors-full show current subtree and its direct ancestors
|
|
|
+
|
|
|
lineage show current headline, its direct ancestors and all
|
|
|
their children; if point is not on headline, also show
|
|
|
entry and first child
|
|
@@ -1240,6 +1242,7 @@ more context."
|
|
|
(const minimal)
|
|
|
(const local)
|
|
|
(const ancestors)
|
|
|
+ (const ancestors-full)
|
|
|
(const lineage)
|
|
|
(const tree)
|
|
|
(const canonical))))))
|
|
@@ -6756,9 +6759,9 @@ be shown."
|
|
|
|
|
|
(defun org-show-set-visibility (detail)
|
|
|
"Set visibility around point according to DETAIL.
|
|
|
-DETAIL is either nil, `minimal', `local', `ancestors', `lineage',
|
|
|
-`tree', `canonical' or t. See `org-show-context-detail' for more
|
|
|
-information."
|
|
|
+DETAIL is either nil, `minimal', `local', `ancestors',
|
|
|
+`ancestors-full', `lineage', `tree', `canonical' or t. See
|
|
|
+`org-show-context-detail' for more information."
|
|
|
;; Show current heading and possibly its entry, following headline
|
|
|
;; or all children.
|
|
|
(if (and (org-at-heading-p) (not (eq detail 'local)))
|
|
@@ -6773,14 +6776,16 @@ information."
|
|
|
(org-with-limited-levels
|
|
|
(cl-case detail
|
|
|
((tree canonical t) (org-show-children))
|
|
|
- ((nil minimal ancestors))
|
|
|
+ ((nil minimal ancestors ancestors-full))
|
|
|
(t (save-excursion
|
|
|
(outline-next-heading)
|
|
|
(org-flag-heading nil)))))))
|
|
|
+ ;; Show whole subtree.
|
|
|
+ (when (eq detail 'ancestors-full) (org-show-subtree))
|
|
|
;; Show all siblings.
|
|
|
(when (eq detail 'lineage) (org-show-siblings))
|
|
|
;; Show ancestors, possibly with their children.
|
|
|
- (when (memq detail '(ancestors lineage tree canonical t))
|
|
|
+ (when (memq detail '(ancestors ancestors-full lineage tree canonical t))
|
|
|
(save-excursion
|
|
|
(while (org-up-heading-safe)
|
|
|
(org-flag-heading nil)
|