branch: elpa/annotate commit faa924541468860c949cf462625556ffd2e8fbcd Author: cage <cage@invalid> Commit: cage <cage@invalid>
- increased version number and updated documentations. --- NEWS.org | 20 +++++++++++++++++++- README.org | 13 ++++++++++++- annotate.el | 4 ++-- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/NEWS.org b/NEWS.org index a1d308643f..0b00ae34b4 100644 --- a/NEWS.org +++ b/NEWS.org @@ -198,7 +198,7 @@ Fixed highlight color of annotated text that starts from the first character of the buffer's content. -- 2021-02-05 V1.1.5 Bastian Bechtold, cage :: +- 2021-03-17 V1.1.5 Bastian Bechtold, cage :: Removed compilation warnings, one of the problem highlighted by a warning was actually preventing this package working on Doom Emacs. @@ -208,3 +208,21 @@ Many thanks to many people that helped discovering and suggesting fix for these problems! + +- 2021-04-27 V1.2 Bastian Bechtold, cage :: + + New feature. When the customizable variable + `annotate-endline-annotate-whole-line' is not nil (default t), and + and the user try to annotate a newline the whole line is annotated + instead (or the next if the line is empty). + + If the line contains a single annotation that cover all the line + annotating the newline Will ask to edit the annotation. If + `annotate-endline-annotate-whole-line' is nil annotating a newline + will signal an error. + + Also this version generates smaller database as files left with no + annotations will not be saved on disk. + + Finally annotating read-only buffers (especially deleting + annotations) should works without problems. diff --git a/README.org b/README.org index e32f61ee6f..f9e8c65931 100644 --- a/README.org +++ b/README.org @@ -66,13 +66,24 @@ can take advantage of its packages generated files management. ** keybindings *** ~C-c C-a~ (function annotate-annotate) - creates a new annotation for that + Creates a new annotation for that region. With no active region, ~C-c C-a~ will create an annotation for the word under point. If point is on an annotated region, ~C-c C-a~ will edit that annotation instead of creating a new one. Clearing the annotation deletes them. + If point is the newline character and the customizable variable + ~annotate-endline-annotate-whole-line~ is not nil (default is non + nil) the whole line is annotated (or the next if the line is + empty). + + If the line contains a single annotation that cover all the line + annotating the newline Will ask to edit the annotation. If + `annotate-endline-annotate-whole-line' is nil annotating a newline + will signal an error. + **** related customizable variable + - ~annotate-endline-annotate-whole-line~ - ~annotate-highlight~; - ~annotate-highlight-secondary~; - ~annotate-annotation~; diff --git a/annotate.el b/annotate.el index 21e76c6cf9..4b9d932ed7 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: 1.1.5 +;; Version: 1.2.0 ;; This file is NOT part of GNU Emacs. @@ -58,7 +58,7 @@ ;;;###autoload (defgroup annotate nil "Annotate files without changing them." - :version "1.1.5" + :version "1.2.0" :group 'text) ;;;###autoload