emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/annotate b8c9299940 2/4: - updated version number.


From: ELPA Syncer
Subject: [nongnu] elpa/annotate b8c9299940 2/4: - updated version number.
Date: Sat, 1 Apr 2023 12:59:23 -0400 (EDT)

branch: elpa/annotate
commit b8c929994048ed98c2a4fe6510365ece90dad8ec
Author: cage <cage@invalid>
Commit: cage <cage@invalid>

    - updated version number.
    
    - updated documentation.
---
 NEWS.org    |  7 ++++++-
 README.org  | 33 ++++++++++++++++++++-------------
 annotate.el | 16 +++++-----------
 3 files changed, 31 insertions(+), 25 deletions(-)

diff --git a/NEWS.org b/NEWS.org
index 6960eb09fa..754067a313 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -1,6 +1,11 @@
+- 2023-03-22 v2.0.0 cage ::
+
+  This version modify the command ~annotate-annotate~ to allow setting 
specific colors
+  for each annotation.
+
 - 2023-02-22 v1.9.0 cage ::
 
-  This version added two new commands to hide/show the tannotation's text:
+  This version added two new commands to hide/show the annotation's text:
 
   - annotate-toggle-annotation-text :: shows or hides annotation's text under 
cursor;
   - annotate-toggle-all-annotations-text :: shows or hides the annotation's 
text in the whole buffer.
diff --git a/README.org b/README.org
index 6a38d69a53..b5150caa43 100644
--- a/README.org
+++ b/README.org
@@ -97,19 +97,20 @@ can take advantage of its packages generated files 
management.
 ** keybindings
 
 *** ~C-c  C-a~ (function annotate-annotate)
-    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.
+    Creates a new annotation for that region.
 
-    If ~annotate-annotation-confirm-deletion~ is  non nil (the default
+    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 ~annotate-annotation-confirm-deletion~ is non nil (the default
     is *nil*) a confirmation action is asked, using ~y-or-n-p~, to the
     user before actually remove the annotation.
 
-    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
+    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
@@ -117,16 +118,22 @@ can take advantage of its packages generated files 
management.
     ~annotate-endline-annotate-whole-line~ is nil annotating a newline
     will signal an error.
 
+    With a numeric prefix the annotations will be displayed with the
+    faces indicated in ~annotate-endline-annotate-whole-line~ and
+    ~annotate-annotation-text-faces~, respectively. The numeric
+    prefix is used as index in the lists bound to the aforementioned
+    variables.
+
+    The first theme can be addressed by the prefix ~1~, the second by
+    the prefix ~2~ and so on.
+
 **** related customizable variable
      - ~annotate-annotation-column~;
      - ~annotate-annotation-confirm-deletion~;
      - ~annotate-annotation-max-size-not-place-new-line~;
      - ~annotate-annotation-position-policy~;
-     - ~annotate-annotation-secondary~;
-     - ~annotate-annotation~;
      - ~annotate-endline-annotate-whole-line~;
-     - ~annotate-highlight-secondary~;
-     - ~annotate-highlight~.
+     - ~annotate-annotation-text-faces~.
 
 *** ~C-c C-d~
     Delete an annotation under point, if such annotation exists.
diff --git a/annotate.el b/annotate.el
index cb48d487b3..32811771d4 100644
--- a/annotate.el
+++ b/annotate.el
@@ -7,7 +7,7 @@
 ;; Maintainer: Bastian Bechtold <bastibe.dev@mailbox.org>, cage 
<cage-dev@twistfold.it>
 ;; URL: https://github.com/bastibe/annotate.el
 ;; Created: 2015-06-10
-;; Version: 1.9.0
+;; Version: 2.0.0
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -58,7 +58,7 @@
 ;;;###autoload
 (defgroup annotate nil
   "Annotate files without changing them."
-  :version "1.9.0"
+  :version "2.0.0"
   :group 'text)
 
 (defvar annotate-mode-map
@@ -94,18 +94,12 @@ name of the local database annotation"
   :type 'string)
 
 (defcustom annotate-highlight-faces '((:underline "coral")
-                                      (:underline "khaki")
-                                      (:underline "green"))
-
+                                      (:underline "khaki"))
   "List of faces for annotated text."
   :type 'list)
 
-(defcustom annotate-annotation-text-faces '((:background "coral"
-                                             :foreground "black")
-                                            (:background "khaki"
-                                             :foreground "red")
-                                            (:background "green"
-                                             :foreground "blue"))
+(defcustom annotate-annotation-text-faces '((:background "coral" :foreground 
"black")
+                                            (:background "khaki" :foreground 
"black"))
   "List of faces for annotation's text."
   :type 'list)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]