[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 7eee85f7f9 070/372: - made the character under th
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 7eee85f7f9 070/372: - made the character under the annotated text (when exporting or integrating) |
Date: |
Fri, 4 Feb 2022 16:58:19 -0500 (EST) |
branch: elpa/annotate
commit 7eee85f7f917e4560b2a2a39a5dbd1f8533e460d
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>
- made the character under the annotated text (when exporting or
integrating)
customizable.
---
annotate.el | 38 ++++++++++++++++++++++++++++----------
1 file changed, 28 insertions(+), 10 deletions(-)
diff --git a/annotate.el b/annotate.el
index 889efc691a..be9d50a475 100644
--- a/annotate.el
+++ b/annotate.el
@@ -103,6 +103,11 @@
:type 'string
:group 'annotate)
+(defcustom annotate-integrate-higlight ?~
+ "When variable comment-start is nil use this string instead."
+ :type 'character
+ :group 'annotate)
+
(defcustom annotate-fallback-comment "#"
"When variable comment-start is nil use this string instead."
:type 'string
@@ -229,11 +234,13 @@ An example might look like this:"
(insert "\n"
(actual-comment-start)
(make-string (max 0 (- ov-start bol (length
(actual-comment-start)))) ? )
- (make-string (max 0 (- eol ov-start)) ?~)))
+ (make-string (max 0 (- eol ov-start))
+ annotate-integrate-higlight)))
;; fully underline second to second-to-last line
(while (< (progn (forward-line)
(end-of-line)
- (point)) (overlay-end ov))
+ (point))
+ (overlay-end ov))
(let ((bol (progn (beginning-of-line)
(point)))
(eol (progn (end-of-line)
@@ -241,7 +248,8 @@ An example might look like this:"
(end-of-line)
(insert "\n"
(actual-comment-start)
- (make-string (max 0 (- eol bol (length
(actual-comment-start)))) ?~))))
+ (make-string (max 0 (- eol bol (length
(actual-comment-start))))
+ annotate-integrate-higlight))))
;; partially underline last line
(let ((bol (progn (beginning-of-line)
(point)))
@@ -249,7 +257,8 @@ An example might look like this:"
(end-of-line)
(insert "\n"
(actual-comment-start)
- (make-string (max 0 (- ov-end bol (length
(actual-comment-start)))) ?~)))
+ (make-string (max 0 (- ov-end bol (length
(actual-comment-start))))
+ annotate-integrate-higlight)))
;; insert actual annotation text
(insert "\n"
(actual-comment-start)
@@ -262,8 +271,10 @@ An example might look like this:"
(bol (progn (beginning-of-line)
(point)))
(underline-marker (if (= bol ov-start)
- (make-string (max 0 (- ov-end ov-start
1)) ?~)
- (make-string (max 0 (- ov-end ov-start))
?~))))
+ (make-string (max 0 (- ov-end ov-start 1))
+ annotate-integrate-higlight)
+ (make-string (max 0 (- ov-end ov-start))
+ annotate-integrate-higlight))))
(end-of-line)
(insert "\n"
(actual-comment-start)
@@ -348,7 +359,7 @@ annotation, and can be conveniently viewed in diff-mode."
(unless (string= (car annotation-line-list) "+")
(insert (actual-comment-start)
(make-string (- start bol) ? )
- (make-string (- end start) ?~)
+ (make-string (- end start)
annotate-integrate-higlight)
"\n"))
(insert (actual-comment-start)
(make-string (- start bol) ? )
@@ -363,21 +374,28 @@ annotation, and can be conveniently viewed in diff-mode."
(unless (string= line "+") ; empty line
(insert (actual-comment-start)
(make-string (- start bol) ? )
- (make-string (- (length line) (- start bol)) ?~)
+ (make-string (- (length line) (- start bol))
+ annotate-integrate-higlight)
"\n")))
(dolist (line (cdr (butlast annotation-line-list))) ; nth line
;; nth diff line
(insert line "\n")
;; nth underline highlight (from bol to eol)
(unless (string= line "+")
- (insert (actual-comment-start) (make-string (length line)
?~) "\n")))
+ (insert (actual-comment-start)
+ (make-string (length line)
+ annotate-integrate-higlight)
+ "\n")))
(let ((line (car (last annotation-line-list))))
;; last diff line
(insert line "\n")
;; last underline highlight (from bol to end)
(unless (string= line "+")
(insert (actual-comment-start)
- (make-string (- (length line) (- eol end) 1) ?~)
+ (make-string (- (length line)
+ (- eol end)
+ 1)
+ annotate-integrate-higlight)
"\n")))
;; annotation text
(insert (actual-comment-start)
- [nongnu] elpa/annotate 553116dc61 239/372: - added missing unquote in macro 'annotate-with-restore-modified-bit'., (continued)
- [nongnu] elpa/annotate 553116dc61 239/372: - added missing unquote in macro 'annotate-with-restore-modified-bit'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 5fd0923df1 232/372: Merge pull request #71 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 7893fb3060 261/372: - updated README., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate c103381862 280/372: - moved 'save-match-data' from the function that calls, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3b871f10f9 290/372: - prevented side effects of 'split-string', ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f3ace011a2 286/372: - changed customizable variable related to exporting., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d4eff870d9 292/372: Merge pull request #93 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 58525eb73a 307/372: - changed function calls from 'cl' package to the 'cl-lib' equivalents., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4abf492f05 297/372: - updated NEWS and CHANGELOG;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate faa9245414 329/372: - increased version number and updated documentations., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 7eee85f7f9 070/372: - made the character under the annotated text (when exporting or integrating),
ELPA Syncer <=
- [nongnu] elpa/annotate 6d74f53074 015/372: improve documentation and add license, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6b4b2b69d7 023/372: can now annotate long lines, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 39fc4bbda2 090/372: - added an annotation summary window, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d84bfd56b8 103/372: Merge pull request #44 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 253b5e2d7b 118/372: - try to elaborate a bit more the function goal., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f806eff4cc 142/372: Merge pull request #49 from cage2/annotate-info-files, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 40bd336a96 037/372: fix cl-related errors, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e199c77598 027/372: export format is now a valid unified diff, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e8c9b33b4d 051/372: fix unicode annotations, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 676d9863f9 048/372: fix undo bug, ELPA Syncer, 2022/02/04