branch: elpa/annotate commit 11430875153badc6aabe3d9a0f2b067bc81f8240 Author: cage <cage-invalid@invalid> Commit: cage <cage-invalid@invalid>
- updated documentation. --- Changelog | 70 ++++++++++++++++++++++++++++++++++++++----------------------- NEWS.org | 3 +++ annotate.el | 4 ++-- 3 files changed, 49 insertions(+), 28 deletions(-) diff --git a/Changelog b/Changelog index 9c195efaf6..edb5f8f61c 100644 --- a/Changelog +++ b/Changelog @@ -2,10 +2,10 @@ * annotate.el (defun annotate-annotation-force-newline-policy, annotate-annotation-newline-policy-forced-p, - annotate-create-annotation, + annotate-create-annotation, annotate-lineate, annotate-summary-delete-annotation-button-pressed): - - mitigated bug that prevented rendering of annotation in + - mitigated bug that prevented rendering of annotation in org-mode forcing 'newline' policy for annotation positioning. See the local function @@ -20,32 +20,50 @@ * annotate.el (annotate--font-lock-matcher): - fixed error for regexp search - Sometimes some modes/package puts overlay on the last character of a - buffer (notably SLIME when the parenthesis of a form are not + Sometimes some modes/package puts overlay on the last character of a + buffer (notably SLIME when the parenthesis of a form are not balanced). This will make 're-search-forward' in the aforementioned function fails and font lock becomes a mess (e.g. text color disappears). 2020-02-10 Bastian Bechtold, cage - * annotate.el (annotate--font-lock-matcher annotate-bounds annotate-symbol-strictly-at-point annotate-next-annotation-change annotate-previous-annotation-change annotate-clear-annotations annotate-annotate) - - prevented fails of fontification of annotated regions - As we walk across the overlays we can get past the limit; - - mark buffer as modified even if the only action the user performed - was clearing annotation (and at least an annotation was present in - the file) - - prevented annotation of text marked with a region that overlap with - an existing annotation. - -2020-03-06 Bastian Bechtold, cage :: - * annotate.el (annotate-annotation-force-newline-policy annotate-annotation-newline-policy-forced-p annotate-summary-delete-annotation-button-pressed annotate--annotation-builder) - - - used an heuristic to force newline policy when the annotated - text does not uses a standard fonts (using font height as - comparison); - - - when, in summary window, the delete button is pressed the - software take care of reload annotate mode for the visited buffer - the annotation button is referring to; - - - when re-flowing annotation the window width was calculated always - for the current buffer (the one with the focus). + * annotate.el (annotate--font-lock-matcher annotate-bounds annotate-symbol-strictly-at-point annotate-next-annotation-change annotate-previous-annotation-change annotate-clear-annotations annotate-annotate) + - prevented fails of fontification of annotated regions + As we walk across the overlays we can get past the limit; + - mark buffer as modified even if the only action the user performed + was clearing annotation (and at least an annotation was present in + the file) + - prevented annotation of text marked with a region that overlap with + an existing annotation. + +2020-03-06 Bastian Bechtold, cage + * annotate.el (annotate-annotation-force-newline-policy annotate-annotation-newline-policy-forced-p annotate-summary-delete-annotation-button-pressed annotate--annotation-builder) + + - used an heuristic to force newline policy when the annotated + text does not uses a standard fonts (using font height as + comparison); + + - when, in summary window, the delete button is pressed the + software take care of reload annotate mode for the visited buffer + the annotation button is referring to; + + - when re-flowing annotation the window width was calculated always + for the current buffer (the one with the focus). + +2020-04-06 Bastian Bechtold, cage + * annotate.el + + - each annotation (the overlay, actually) now has a property 'position + and its value indicates which positions the annotations holds in a + "chain" of annotations. + + Even if rendered separately each chain represents a single + annotation. + + The last annotation in the chain has position's value equal to -1. + + If the set of a group/chain is formed by only one element the + position's value is -1 as well. + + Please note that this changes impacted more or less the whole + package's code. diff --git a/NEWS.org b/NEWS.org index 8023a9f418..1ee3c3e5f5 100644 --- a/NEWS.org +++ b/NEWS.org @@ -100,3 +100,6 @@ summary window force refresh of a buffer that is visiting said file, if exists, to reflect the changes; - fixed flowings of annotatinons when window's width is changed. + +- 2020-04-06 V0.5.4 Bastian Bechtold, cage :: + Fixed bugs of multiline annotations, diff exports and integration. diff --git a/annotate.el b/annotate.el index c191301dae..73180a9e5d 100644 --- a/annotate.el +++ b/annotate.el @@ -7,7 +7,7 @@ ;; Maintainer: Bastian Bechtold ;; URL: https://github.com/bastibe/annotate.el ;; Created: 2015-06-10 -;; Version: 0.5.3 +;; Version: 0.5.4 ;; This file is NOT part of GNU Emacs. @@ -55,7 +55,7 @@ ;;;###autoload (defgroup annotate nil "Annotate files without changing them." - :version "0.5.3" + :version "0.5.4" :group 'text) ;;;###autoload