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

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

[nongnu] elpa/annotate 9481412351 1/5: fixes maintainers list as propose


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 9481412351 1/5: fixes maintainers list as proposed by Stefan Monnier
Date: Fri, 8 Apr 2022 05:57:59 -0400 (EDT)

branch: elpa/annotate
commit 94814123516a7e587af55552ac38db220ea0d1e2
Author: btd <bastian.bechtold@idmt.fraunhofer.de>
Commit: btd <bastian.bechtold@idmt.fraunhofer.de>

    fixes maintainers list as proposed by Stefan Monnier
    
    also adds other proposed changes, such as ignoring ELPA-generated files
---
 .gitignore  |  3 +++
 annotate.el | 21 +++++++++++----------
 2 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000..56f0ec2487
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.elc
+/annotate-autoloads.el
+/annotate-pkg.el
diff --git a/annotate.el b/annotate.el
index cde1e1e7cf..6fd0bf6336 100644
--- a/annotate.el
+++ b/annotate.el
@@ -4,7 +4,7 @@
 ;; Universita' degli Studi di Palermo (2019)
 
 ;; Author: Bastian Bechtold
-;; Maintainer: Bastian Bechtold co-maintainer: cage <cage-dev@twistfold.it>
+;; 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.5.2
@@ -35,15 +35,15 @@
 
 ;; This package provides the minor mode annotate-mode, which can add
 ;; annotations to arbitrary files without changing the files
-;; themselves. Annotations are saved in the annotate-file
+;; themselves.  Annotations are saved in the annotate-file
 ;; (~/.annotations by default).
 ;;
-;; To add annotations to a file, select a region and hit C-c C-a. The
+;; To add annotations to a file, select a region and hit C-c C-a.  The
 ;; region will be underlined, and the annotation will be displayed in
-;; the right margin. Annotations are saved whenever the file is saved.
+;; the right margin.  Annotations are saved whenever the file is saved.
 ;;
 ;; Use C-c ] to jump to the next annotation and C-c [ to jump to
-;; the previous annotation. Use M-x annotate-export-annotations to
+;; the previous annotation.  Use M-x annotate-export-annotations to
 ;; save annotations as a no-difference diff file.
 
 ;; Important note: annotation can not overlaps and newline character
@@ -1206,11 +1206,12 @@ a        a**"
                     (setq prefix-first prefix-rest))))))
         (when (not annotate-use-echo-area)
           ;; build facespec with the annotation text as display property
-          (if (string= annotation-text "")
-              ;; annotation has been removed: remove display prop
-              (list 'face 'default 'display nil)
-            ;; annotation has been changed/added: change/add display prop
-            (list 'face 'default 'display annotation-text))))))
+          (list 'face 'default 'display
+                (if (string= annotation-text "")
+                    ;; annotation has been removed: remove display prop
+                    nil
+                  ;; annotation has been changed/added: change/add display prop
+                  annotation-text))))))
 
 (defun annotate--remove-annotation-property (_begin end)
   "Cleans up annotation properties associated within a region



reply via email to

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