[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-tree-slide cc42137ed8 085/144: Merge pull request #17
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-tree-slide cc42137ed8 085/144: Merge pull request #17 from bennati/presentation-end |
Date: |
Tue, 18 Jan 2022 08:59:43 -0500 (EST) |
branch: elpa/org-tree-slide
commit cc42137ed80a34775f89dd14b9b13e13afeaef8c
Merge: 3b020a663b ea33297150
Author: Takaaki ISHIKAWA <takaxp@ieee.org>
Commit: Takaaki ISHIKAWA <takaxp@ieee.org>
Merge pull request #17 from bennati/presentation-end
Show content after last slide
---
org-tree-slide.el | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/org-tree-slide.el b/org-tree-slide.el
index c9004930c7..2b1c223ac5 100644
--- a/org-tree-slide.el
+++ b/org-tree-slide.el
@@ -409,19 +409,23 @@ Profiles:
(unless (equal org-tree-slide-modeline-display 'outside)
(message " Next >>"))
(cond
+ ((and (org-tree-slide--narrowing-p) ;displaying a slide, not the contents
+ (org-tree-slide--last-tree-p (progn (beginning-of-line) (point))))
;the last subtree
+ (org-tree-slide-content))
((or
(or (and (org-tree-slide--before-first-heading-p)
(not (org-at-heading-p)))
(and (= (point-at-bol) 1) (not (org-tree-slide--narrowing-p))))
(or (org-tree-slide--first-heading-with-narrow-p)
(not (org-at-heading-p))))
- (run-hooks 'org-tree-slide-before-move-next-hook)
+ (run-hooks 'org-tree-slide-before-move-next-hook)
(widen)
- (org-tree-slide--outline-next-heading))
+ (org-tree-slide--outline-next-heading)
+ (org-tree-slide--display-tree-with-narrow))
;; stay the same slide (for CONTENT MODE, on the subtrees)
- (t nil))
+ (t nil (org-tree-slide--display-tree-with-narrow)))
;; (when (and org-tree-slide-skip-done (looking-at (concat "^\\*+ "
org-not-done-regexp))) (org-clock-in) )
- (org-tree-slide--display-tree-with-narrow)))
+ ))
(defun org-tree-slide-move-previous-tree ()
"Display the previous slide"
@@ -810,9 +814,13 @@ Profiles:
(defun org-tree-slide--beginning-of-tree ()
"Return beginning point of the line, or t. If the position does not exist in
the buffer, then return nil."
(beginning-of-line)
- (if (org-at-heading-p)
+ (if (and (not (org-tree-slide--heading-skip-p)) ;if the header has to be
skipped
+ (org-at-heading-p))
(point)
- (outline-previous-heading))) ; return position or nil.
+ (progn
+ (outline-previous-heading) ;go to previous heading
+ (org-tree-slide--beginning-of-tree)) ;recursion until a visible
heading is found
+ )) ; return position or nil.
(provide 'org-tree-slide)
- [nongnu] elpa/org-tree-slide ea33297150 084/144: Bugfix, commented headings were considered as last headings, (continued)
- [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, 2022/01/18
- [nongnu] elpa/org-tree-slide cc42137ed8 085/144: Merge pull request #17 from bennati/presentation-end,
ELPA Syncer <=
- [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
- [nongnu] elpa/org-tree-slide 062035ec7b 102/144: Extract header colors from default face of frame, ELPA Syncer, 2022/01/18