[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate e933d84692 214/372: - fixed removing of annotatio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate e933d84692 214/372: - fixed removing of annotation in 'annotate-before-change-fn' |
Date: |
Fri, 4 Feb 2022 16:59:01 -0500 (EST) |
branch: elpa/annotate
commit e933d8469234df79ed248429396a899a8f354d5c
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>
- fixed removing of annotation in 'annotate-before-change-fn'
sometimes when the annotated text is changed we could remove an
overlay that is part of an annotation chain. This is ok but if
happens to delete the last element of a chain we should ensure the
the preceding overlay takes is place, if such overlay exists.
---
annotate.el | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/annotate.el b/annotate.el
index 73180a9e5d..8434c0a16a 100644
--- a/annotate.el
+++ b/annotate.el
@@ -325,7 +325,17 @@ modified (for example a newline is inserted)."
(move-overlay overlay (overlay-start overlay) a)
;; delete overlay if there is no more annotated text
(when (annotate-annotated-text-empty-p overlay)
- (delete-overlay overlay))))))))
+ ;; we are deleting the last element of a chain (a
+ ;; stopper)...
+ (when (annotate-chain-last-p overlay)
+ ;; move 'stopper' to the previous chain element
+ (let ((annot-before (annotate-previous-annotation-ends
(overlay-start overlay))))
+ ;; ...if such element exists
+ (when annot-before
+ (annotate-annotation-chain-position annot-before
+
annotate-prop-chain-pos-marker-last))))
+ (delete-overlay overlay)
+ (font-lock-fontify-buffer))))))))
(defun annotate-info-select-fn ()
"The function to be called when an info buffer is updated"
- [nongnu] elpa/annotate 6289c87bf8 029/372: annotation buffer now has proper file name, (continued)
- [nongnu] elpa/annotate 6289c87bf8 029/372: annotation buffer now has proper file name, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e1daa61b99 065/372: use `locate-user-emacs-file` to specify default save file, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 392197f943 155/372: Merge branch 'master' into annotations-on-their-own-line, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3bb486d0cf 158/372: - changed `let*' with `let'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate c007611614 159/372: - removed useless rebinding of 'annotate-annotation-position-policy'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate c7891d8d24 163/372: - tried to make the file more "site friendly"., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate ec0ed147a2 170/372: - fixed error for regexp search in 'annotate--font-lock-matcher', ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 1525550f85 182/372: - changed test for annotation rejection and removed (maybe) useless check., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 2e858729cb 200/372: - saving annotations with newlines seems to works;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 31e3c24726 195/372: - updated version and documentation, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e933d84692 214/372: - fixed removing of annotation in 'annotate-before-change-fn',
ELPA Syncer <=
- [nongnu] elpa/annotate e03edfb2c2 218/372: - increased version number;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e2c365a376 222/372: - added reference to the issue., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 44b378b16a 219/372: Merge pull request #62 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f0a71bb148 223/372: Merge pull request #64 from cage2/fix-face-detection, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 8ac52808e8 226/372: - added a couple of functions to allow an user to change the file that, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 9ea6c4fc71 247/372: - signalled errors when query parsing errors occurs., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate cc0b5da6c1 229/372: Merge pull request #69 from cage2/switch-database, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 914c9ee5b9 264/372: Fixed a regression and some bugs related to incorrect calculation of, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 0b71184865 269/372: - updated changelog., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3b4ee73c8d 275/372: - stored abbreviated filenames for the path component of each record, ELPA Syncer, 2022/02/04