[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 936f081575 005/372: doesn't create empty annotati
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 936f081575 005/372: doesn't create empty annotations any more |
Date: |
Fri, 4 Feb 2022 16:58:14 -0500 (EST) |
branch: elpa/annotate
commit 936f0815753022e61411bad288d4e6f7838b45f2
Author: Bastian Bechtold <basti@bastibe.de>
Commit: Bastian Bechtold <basti@bastibe.de>
doesn't create empty annotations any more
---
annotate.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/annotate.el b/annotate.el
index 9fcca73634..34b269a3dc 100644
--- a/annotate.el
+++ b/annotate.el
@@ -40,12 +40,13 @@
(let ((highlight (make-overlay start end))
(annotation (read-from-minibuffer "Annotation: "))
(prefix (make-string (- annotate-annotation-column
(annotate-line-length)) ? )))
- (overlay-put highlight 'face annotate-highlight-face)
- (overlay-put highlight 'annotation annotation)
- (setq annotation (propertize annotation 'face annotate-annotation-face))
- (save-excursion
- (move-end-of-line nil)
- (put-text-property (point) (1+ (point)) 'display (concat prefix
annotation "\n")))))
+ (when (not (string= "" annotation))
+ (overlay-put highlight 'face annotate-highlight-face)
+ (overlay-put highlight 'annotation annotation)
+ (setq annotation (propertize annotation 'face annotate-annotation-face))
+ (save-excursion
+ (move-end-of-line nil)
+ (put-text-property (point) (1+ (point)) 'display (concat prefix
annotation "\n"))))))
(defun annotate-change-annotation (pos)
"Change annotation at point. If empty, delete annotation."
- [nongnu] elpa/annotate 7531343d7b 001/372: initial prototype, (continued)
- [nongnu] elpa/annotate 7531343d7b 001/372: initial prototype, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6c33ac48d0 003/372: annotate without region, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 32d82c4557 018/372: no more nil annotations, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate aa075cfe04 002/372: change annotation display from overlay to property, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 94c2a9455f 019/372: increment version number, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 530b4aa78a 022/372: increment version number, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f2bcc95e8b 024/372: add melpa links, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a6f7279a4c 016/372: fixed typos and version error, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 0bd3bdce01 017/372: improved README, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate ffac176c22 021/372: fix upside-down annotation construction, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 936f081575 005/372: doesn't create empty annotations any more,
ELPA Syncer <=
- [nongnu] elpa/annotate fc2c0395d7 007/372: add missing require, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6372f8e340 009/372: implement save and load, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 856ebe246b 020/372: properly ignore non-annotation overlays, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 8f252d2892 025/372: clear-annotations does not clear all overlays, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 2084f831bc 026/372: added export functionality as sort-of-diffscuss, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 52f0d97e51 030/372: new version and documentation, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate b0266c6350 047/372: version 0.4.1, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4647264264 049/372: auto-reflow annotations when frame size changes, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 785b5aea7f 042/372: rework annotation display logic, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d6a4fcc18e 035/372: add next-annotation and previous-annotation keys, ELPA Syncer, 2022/02/04