[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate bae16321fc 117/372: - using a customizable variab
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate bae16321fc 117/372: - using a customizable variable for region where to look for annotated |
Date: |
Fri, 4 Feb 2022 16:58:25 -0500 (EST) |
branch: elpa/annotate
commit bae16321fc54c4ea3c074ef69014ba71027d8257
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>
- using a customizable variable for region where to look for annotated
text.
---
annotate.el | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/annotate.el b/annotate.el
index 90aa001e17..04b8f64638 100644
--- a/annotate.el
+++ b/annotate.el
@@ -140,6 +140,15 @@ major mode is a member of this list (space separated
entries)."
"The message to warn the user that file has been modified and
annotations positions could be outdated")
+(defcustom annotate-search-region-lines-delta 2
+ "When the annotated file is out of sync with its annotation
+database the software looks for annotated text in the region with
+delta equals to the value of this variable. Units are in number
+of lines. The center of the region is the position of the
+annotation as defined in the database."
+ :type 'number
+ :group 'annotate)
+
(defconst annotate-summary-list-prefix " "
"The string used as prefix for each text annotation item in summary window")
@@ -986,9 +995,12 @@ essentially what you get from:
(beginning-of-line)
(point)))
(go-backward (start)
- (beginning-of-nth-line start -2))
+ (beginning-of-nth-line
+ start
+ (- annotate-search-region-lines-delta)))
(go-forward (start)
- (beginning-of-nth-line start 2))
+ (beginning-of-nth-line start
+
annotate-search-region-lines-delta))
(guess-match-and-add (start end sample max)
(cl-block surrounding
(while (< start max)
- [nongnu] elpa/annotate d60feb9cab 106/372: Merge pull request #45 from cage2/master, (continued)
- [nongnu] elpa/annotate d60feb9cab 106/372: Merge pull request #45 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate c5ecb3649b 127/372: - removed useless quotation mark., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate db489ad5c0 111/372: - changed secondary color., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4f9c5f6d67 125/372: - added a warning when searching for a annotated text fails., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 01373a4420 104/372: - preventing loss of undo list, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3108c44c53 123/372: - moving some args checks from 'annotate-create-annotation' to, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 1c64e46ad0 109/372: - changed variable name, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d46d5afd34 122/372: - made two arguments of annotate-create-annotation non optional;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate b180248ddc 113/372: - fixed bug with multiline annotation, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 14ef3fb140 126/372: - fixed docstring., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate bae16321fc 117/372: - using a customizable variable for region where to look for annotated,
ELPA Syncer <=
- [nongnu] elpa/annotate 7ff18171a6 112/372: - fixed typos., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 7ebddc73a0 144/372: - enabled filtering of annotation database when a summary window is shown., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 50ba1d719c 143/372: - used a better regex when checking if a file is in info format., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 50bc634f6b 140/372: - placed the cursor in the right place (on the annotated text) when an, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 1f9899071f 138/372: - made recongnizable code that refers to info file annotation. (3/3), ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4629a0ad34 148/372: Merge pull request #51 from cage2/filter-summary-window-results, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4372e9ea20 147/372: - changed escaping mechanism;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6948bfe686 146/372: - minor fix in comments., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate b116d3125a 149/372: - added the chance to delete annotation and modify the annotated text, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3e76557cf7 154/372: Merge pull request #53 from cage2/summary-win-delete-replace-annotation, ELPA Syncer, 2022/02/04