[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 5e2609e16e 207/372: - optimized 'annotate-previou
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 5e2609e16e 207/372: - optimized 'annotate-previous-annotation-ends' and 'annotate-next-annotation-starts'. |
Date: |
Fri, 4 Feb 2022 16:59:00 -0500 (EST) |
branch: elpa/annotate
commit 5e2609e16e640ce388cb16c006af49f0e384b293
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>
- optimized 'annotate-previous-annotation-ends' and
'annotate-next-annotation-starts'.
---
annotate.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/annotate.el b/annotate.el
index 9d788585d2..4fa6bb9041 100644
--- a/annotate.el
+++ b/annotate.el
@@ -1578,10 +1578,10 @@ was found.
NOTE this assumes that annotations never overlaps"
(cl-labels ((previous-annotation-ends (start)
(let ((annotation (annotate-annotation-at start)))
- (while (and (>= (1- start)
+ (while (and (/= start
(point-min))
(null annotation))
- (setf start (1- start))
+ (setf start (previous-overlay-change start))
(setf annotation (annotate-annotation-at start)))
annotation)))
(let ((annotation (annotate-annotation-at pos)))
@@ -1595,10 +1595,10 @@ was found.
NOTE this assumes that annotations never overlaps"
(cl-labels ((next-annotation-ends (start)
(let ((annotation (annotate-annotation-at start)))
- (while (and (<= (1+ start)
+ (while (and (/= start
(point-max))
(null annotation))
- (setf start (1+ start))
+ (setf start (next-overlay-change start))
(setf annotation (annotate-annotation-at start)))
annotation)))
(let ((annotation (annotate-annotation-at pos)))
- [nongnu] elpa/annotate e04e0ebc0c 045/372: deactivate mark after creating annotation, (continued)
- [nongnu] elpa/annotate e04e0ebc0c 045/372: deactivate mark after creating annotation, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 960b01db30 033/372: add variable for disabling minibuffer messages, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 426201f246 076/372: - update contributors according to the original author., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3a062310d0 080/372: - do not checks for fingerprints if annotations file has old format., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 22ae42cb3d 153/372: - removed wrong 'push'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate cc2d32dcbb 165/372: - added a reference of project's homepage in a doc string that is used, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d10b915857 169/372: Merge pull request #56 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate fccf7a5b51 178/372: Merge branch 'master' into org-mode-fix, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate ca86e4a511 187/372: - removed org-mode from blacklist., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 822ed91a87 206/372: - fixed exporting and integrations of annotations;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 5e2609e16e 207/372: - optimized 'annotate-previous-annotation-ends' and 'annotate-next-annotation-starts'.,
ELPA Syncer <=
- [nongnu] elpa/annotate 085791450c 215/372: - changed version number., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate c72e730ba3 217/372: - fixed annotation picking in 'annotate-annotate', ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a38a2ff6b4 221/372: - updated version and documentation., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate bb8cda2edc 238/372: - actually changed version number., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e2fed2fbcf 246/372: - removed useless spaces., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 85520c0202 228/372: - fixed version number., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3f0c28cab6 241/372: - fixed a bug that allowed to create an annotation with an empty text., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 2050c59af3 227/372: - marked buffer as unmodified when switching database and the only, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 99d99e5bcb 234/372: Merge pull request #72 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4b2fa8f61e 252/372: - removed function 'annotate-load-annotation-data-ignore-errors'., ELPA Syncer, 2022/02/04