[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-tree-slide e17dc06053 105/144: Referectaring
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-tree-slide e17dc06053 105/144: Referectaring |
Date: |
Tue, 18 Jan 2022 08:59:53 -0500 (EST) |
branch: elpa/org-tree-slide
commit e17dc0605317ce472483ee52141170603e449f93
Author: Takaaki ISHIKAWA <takaxp@ieee.org>
Commit: Takaaki ISHIKAWA <takaxp@ieee.org>
Referectaring
---
org-tree-slide.el | 51 +++++++++++++++++++++++++++------------------------
1 file changed, 27 insertions(+), 24 deletions(-)
diff --git a/org-tree-slide.el b/org-tree-slide.el
index 26eaddae3f..6b2d18f8df 100644
--- a/org-tree-slide.el
+++ b/org-tree-slide.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2011-2018 Takaaki ISHIKAWA
;;
;; Author: Takaaki ISHIKAWA <takaxp at ieee dot org>
-;; Version: 2.8.10
+;; Version: 2.8.11
;; Maintainer: Takaaki ISHIKAWA <takaxp at ieee dot org>
;; Twitter: @takaxp
;; URL: https://github.com/takaxp/org-tree-slide
@@ -77,7 +77,7 @@
(require 'org-timer)
;;(require 'org-clock) ; org-clock-in, -out, -clocking-p
-(defconst org-tree-slide "2.8.10"
+(defconst org-tree-slide "2.8.11"
"The version number of the org-tree-slide.el.")
(defgroup org-tree-slide nil
@@ -877,32 +877,35 @@ Some number of BLANK-LINES will be shown below the
header."
(save-restriction
(widen)
(goto-char target)
- (if (org-tree-slide--beginning-of-tree)
- (= (point) (org-tree-slide--last-heading-position))
- nil))))
-
-(defun org-tree-slide--last-heading-position ()
- "Return the position of the last heading.
-
- If the position does not exist in the buffer, then return nil."
+ (org-tree-slide--beginning-of-tree)
+ (let ((p (point))
+ (v (goto-char (1+ (buffer-size))))
+ (l (org-tree-slide--last-point-at-bot)))
+ (if l
+ (= p l)
+ nil)))))
+
+(defun org-tree-slide--last-point-at-bot ()
+ "Return nil, if no heading is the last tree. Otherwise, return the point.
+Searching the last point will start from the current cursor position.
+Move point to an appropriate position before searching by call this function."
(save-excursion
(save-restriction
- (goto-char (buffer-size))
- (org-tree-slide--beginning-of-tree))))
+ (widen)
+ (unless (org-tree-slide--before-first-heading-p)
+ (org-tree-slide--beginning-of-tree)
+ (if (org-tree-slide--heading-skip-p)
+ (when (outline-previous-heading)
+ (org-tree-slide--last-point-at-bot))
+ (point))))))
(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 the header has to be skipped
- (if (and (not (org-tree-slide--heading-skip-p))
- (org-at-heading-p))
- (point)
- (progn
- (when (outline-previous-heading)
- (org-tree-slide--beginning-of-tree)))
- )) ; return position or nil.
+ "Move point to beginning of tree.
+If the cursor exist before first heading, do nothing."
+ (unless (org-tree-slide--before-first-heading-p)
+ (beginning-of-line)
+ (unless (org-at-heading-p)
+ (org-tree-slide--outline-previous-heading))))
(provide 'org-tree-slide)
- [nongnu] elpa/org-tree-slide dccd80418a 089/144: Merge pull request #20 from syohex/add-section-meta, (continued)
- [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
- [nongnu] elpa/org-tree-slide 946984e924 106/144: Add new private functions, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 036a36eec1 112/144: Rename an internal variable, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide e17dc06053 105/144: Referectaring,
ELPA Syncer <=
- [nongnu] elpa/org-tree-slide 9d15bd9fa1 113/144: Add support for date header, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 7151aaf4df 117/144: Add FUNDING.yml, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 6cd71afa35 118/144: Add org-tree-slide-indicator, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 7983492eda 124/144: Fix minor typo in README (slip -> skip), ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide d9fede1544 127/144: Merge pull request #36 from KaratasFurkan/create-variable-content-margin-top, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 5e5dbd908e 119/144: Update README.org, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 7126a43650 123/144: Fix typo, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 619fbb17a2 121/144: buffer-narrowed-p is applied, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 1fb3ecb637 132/144: Refine the default of header-overlay-face, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide daeb80986c 137/144: Fix face remap specifications, ELPA Syncer, 2022/01/18