[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 1a43bfbb1e 061/372: fixes bug with annotations en
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 1a43bfbb1e 061/372: fixes bug with annotations ending on beginning-of-line |
Date: |
Fri, 4 Feb 2022 16:58:19 -0500 (EST) |
branch: elpa/annotate
commit 1a43bfbb1e60f27d061f7b61a5c16039237a985a
Author: Bastian Bechtold <basti@bastibe.de>
Commit: Bastian Bechtold <basti@bastibe.de>
fixes bug with annotations ending on beginning-of-line
---
annotate.el | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/annotate.el b/annotate.el
index bce9b77981..99fac1ccf7 100644
--- a/annotate.el
+++ b/annotate.el
@@ -386,7 +386,7 @@ The first match will get `annotate--change-guard` as its
between the overlay and the annotation, the `display` property of
the newline is properly disposed of.
-The second match will get `annotate-annotation-builder` as its
+The second match will get `annotate--annotation-builder` as its
`display` property, which makes the newline look like an
annotation plus the newline."
(goto-char (next-overlay-change (point)))
@@ -442,15 +442,17 @@ annotation plus the newline."
(save-excursion
(goto-char (1- (point))) ; we start at the start of the next line
;; find overlays in the preceding line
- (let* ((prefix (annotate-make-prefix)) ; white space before first
annotation
- (text "")
- (bol (progn (beginning-of-line) (point)))
- (eol (progn (end-of-line) (point)))
- ;; include line break if on empty line:
- (bol* (if (= bol eol) (1- bol) bol))
- (overlays (sort (overlays-in bol* eol)
+ (let ((prefix (annotate-make-prefix)) ; white space before first annotation
+ (bol (progn (beginning-of-line) (point)))
+ (eol (progn (end-of-line) (point)))
+ (text "")
+ (overlays nil))
+ ;; include previous line if point is at bol:
+ (when (eq nil (overlays-in bol eol))
+ (setq bol (1- bol)))
+ (setq overlays (sort (overlays-in bol eol)
(lambda (x y)
- (< (overlay-end x) (overlay-end y))))))
+ (< (overlay-end x) (overlay-end y)))))
;; put each annotation on its own line
(dolist (ov overlays)
(if (overlay-get ov 'annotation)
- [nongnu] elpa/annotate 6372f8e340 009/372: implement save and load, (continued)
- [nongnu] elpa/annotate 6372f8e340 009/372: implement save and load, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 856ebe246b 020/372: properly ignore non-annotation overlays, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 8f252d2892 025/372: clear-annotations does not clear all overlays, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 2084f831bc 026/372: added export functionality as sort-of-diffscuss, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 52f0d97e51 030/372: new version and documentation, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate b0266c6350 047/372: version 0.4.1, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4647264264 049/372: auto-reflow annotations when frame size changes, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 785b5aea7f 042/372: rework annotation display logic, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d6a4fcc18e 035/372: add next-annotation and previous-annotation keys, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f5711b4f27 067/372: - prevent crash and error when a frame's width is less than value of, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 1a43bfbb1e 061/372: fixes bug with annotations ending on beginning-of-line,
ELPA Syncer <=
- [nongnu] elpa/annotate 9ffdc1f762 060/372: fix for annotations with wide characters, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 19acc501d8 086/372: - added/fixed more docstrings., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 774e643af4 081/372: - fixed retrocompatibility with old annotation file format., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4d78e3f6d6 073/372: - restored spaces to comply with markdown syntax;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 95da172588 056/372: readme improvement, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 54aefdec8d 114/372: Merge pull request #46 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 201b4587dc 136/372: - made recongnizable code that refers to info file annotation (1/3), ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate fd2cd2d94d 139/372: - made text snippet in summary window, for info files, less messy., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 75d291a69f 141/372: - using 'annotate-with-inhibit-modification-hooks'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 5b69043454 152/372: - added variable 'annotate-annotation-position-policy', ELPA Syncer, 2022/02/04