[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-tree-slide 3927af91ba 078/144: Heading visibility now
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-tree-slide 3927af91ba 078/144: Heading visibility now depends on the value of org-tree-slide-skip-outline-level: if the level of a heading is the last to be displayed, show the full content instead of the children |
Date: |
Tue, 18 Jan 2022 08:59:41 -0500 (EST) |
branch: elpa/org-tree-slide
commit 3927af91ba7a1b84f06c36089f695b4d91ebafaa
Author: Stefano <ste@fa.no>
Commit: Stefano <ste@fa.no>
Heading visibility now depends on the value of
org-tree-slide-skip-outline-level: if the level of a heading is the last to be
displayed, show the full content instead of the children
---
org-tree-slide.el | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/org-tree-slide.el b/org-tree-slide.el
index 63d3ef9532..f5d0a65137 100644
--- a/org-tree-slide.el
+++ b/org-tree-slide.el
@@ -520,16 +520,18 @@ Profiles:
(defun org-tree-slide--display-tree-with-narrow ()
"Show a tree with narrowing and also set a header at the head of slide."
(run-hooks 'org-tree-slide-mode-before-narrow-hook)
- (run-hooks 'org-tree-slide-before-narrow-hook)
+ (run-hooks 'org-tree-slide-before-narrow-hook)
(when (equal org-tree-slide-modeline-display 'outside)
(setq org-tree-slide--slide-number
- (format " %s" (org-tree-slide--count-slide (point))))
+ (format " %s" (org-tree-slide--count-slide (point))))
(setq org-tree-slide--previous-line (org-tree-slide--line-number-at-pos)))
(goto-char (point-at-bol))
(unless (org-tree-slide--before-first-heading-p)
(hide-subtree) ; support CONTENT (subtrees are shown)
(org-show-entry)
- (show-children)
+ (if (org-tree-slide--heading-level-skip-level-p (1+ (org-outline-level)))
;if this is the last level to be displayed, show the full content
+ (show-all)
+ (show-children))
;; (org-cycle-hide-drawers 'all) ; disabled due to performance reduction
(org-narrow-to-subtree))
(when org-tree-slide-slide-in-effect
@@ -579,19 +581,22 @@ Profiles:
*** hoge ; nil
"
(or (or (org-tree-slide--heading-done-skip-p)
- (org-tree-slide--heading-level-skip-p))
+ (org-tree-slide--heading-level-skip-p))
(org-tree-slide--heading-skip-comment-p)))
-(defun org-tree-slide--heading-level-skip-p ()
+(defun org-tree-slide--heading-level-skip-level-p (level)
(and (> org-tree-slide-skip-outline-level 0)
- (<= org-tree-slide-skip-outline-level (org-outline-level))))
+ (<= org-tree-slide-skip-outline-level level)))
+
+(defun org-tree-slide--heading-level-skip-p ()
+ (org-tree-slide--heading-level-skip-level-p (org-outline-level)))
(defun org-tree-slide--heading-done-skip-p ()
(and org-tree-slide-skip-done
(not
- (looking-at
- ;; 6.33x does NOT suport org-outline-regexp-bol
- (concat "^\\*+ " org-not-done-regexp)))))
+ (looking-at
+ ;; 6.33x does NOT suport org-outline-regexp-bol
+ (concat "^\\*+ " org-not-done-regexp)))))
(defun org-tree-slide--heading-skip-comment-p ()
(and org-tree-slide-skip-comments
- [nongnu] elpa/org-tree-slide fe51f9ecfb 057/144: Added hooks for start and stop presentation, (continued)
- [nongnu] elpa/org-tree-slide fe51f9ecfb 057/144: Added hooks for start and stop presentation, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide ea33297150 084/144: Bugfix, commented headings were considered as last headings, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide fb5d0a8c20 052/144: Support dark color theme, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide a72f5d492d 054/144: Use the latest function, org-at-heading-p, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 06e1a2855a 061/144: Added some features (issue #2, #5, and #7), ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 362bea826d 077/144: Hide org-clock related code, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 3b020a663b 082/144: 'COMMENT'-subtree will be hidden (by Stefano), ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 8570335bbd 090/144: Added a tag for Melpa Stable, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 69e8cd068e 070/144: Refine displaying slide number in modeline, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide caa2a202b5 068/144: Hide skipped slides in CONTENT mode, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 3927af91ba 078/144: Heading visibility now depends on the value of org-tree-slide-skip-outline-level: if the level of a heading is the last to be displayed, show the full content instead of the children,
ELPA Syncer <=
- [nongnu] elpa/org-tree-slide cc42137ed8 085/144: Merge pull request #17 from bennati/presentation-end, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 1864b36a56 081/144: Added a flag to reveal subtrees to be skipped, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide dd344a2749 075/144: Merge branch 'master' of https://github.com/takaxp/org-tree-slide, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide dccd80418a 089/144: Merge pull request #20 from syohex/add-section-meta, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 0abef6864f 069/144: Suppress an error message from org-timer, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 42468d8a09 097/144: Merge branch 'master' of https://github.com/takaxp/org-tree-slide, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide f3059a263f 080/144: Updating indent, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide d45152fad1 099/144: Updated ChangeLog and version number, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide d81195b0df 100/144: Refine docstrings, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 2b833e9faa 101/144: Update comments, ELPA Syncer, 2022/01/18