[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate d46d5afd34 122/372: - made two arguments of annot
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate d46d5afd34 122/372: - made two arguments of annotate-create-annotation non optional; |
Date: |
Fri, 4 Feb 2022 16:58:29 -0500 (EST) |
branch: elpa/annotate
commit d46d5afd34e06bd020ca045e7a33eb540934e9c3
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>
- made two arguments of annotate-create-annotation non optional;
- cosmetic changes to a single docstring.
---
annotate.el | 37 +++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/annotate.el b/annotate.el
index 9c19ba1a20..5b5a76d761 100644
--- a/annotate.el
+++ b/annotate.el
@@ -279,7 +279,7 @@ modified (for example a newline is inserted)."
(font-lock-fontify-buffer nil))
(t
(cl-destructuring-bind (start end) (annotate-bounds)
- (annotate-create-annotation start end)
+ (annotate-create-annotation start end nil nil)
(font-lock-fontify-block 1))))
(set-buffer-modified-p t)))
@@ -982,25 +982,26 @@ essentially what you get from:
(or (null a)
(string= "" a)))
-(defun annotate-create-annotation (start end &optional annotation-text
annotated-text)
+(defun annotate-create-annotation (start end annotation-text annotated-text)
"Create a new annotation for selected region.
- Here the argument 'annotation-text' is the string that appears in the margin
of the window
- and 'annotated-text' is the string that is underlined.
-
- If this function is called from procedure
- 'annotate-load-annotations' the argument 'annotated-text'
- should be not null. In this case we know that an annotation
- existed in a text interval defined in the database
- metadata (the database located in the file specified by the
- variable 'annotate-file') and should just be
- restored. Sometimes the annotated text (see above) can not be
- found in said interval because the annotated file's content
- changed and annotate-mode could not track the
- changes (e.g. save the file when annotate-mode was not
- active/loaded) in this case the matching
- text ('annotated-text') is searched in a region surrounding the
- interval and, if found, the buffer is annotated right there."
+Here the argument 'annotation-text' is the string that appears
+in the margin of the window and 'annotated-text' is the string
+that is underlined.
+
+If this function is called from procedure
+'annotate-load-annotations' the argument 'annotated-text'
+should be not null. In this case we know that an annotation
+existed in a text interval defined in the database
+metadata (the database located in the file specified by the
+variable 'annotate-file') and should just be
+restored. Sometimes the annotated text (see above) can not be
+found in said interval because the annotated file's content
+changed and annotate-mode could not track the
+changes (e.g. save the file when annotate-mode was not
+active/loaded) in this case the matching
+text ('annotated-text') is searched in a region surrounding the
+interval and, if found, the buffer is annotated right there."
(cl-labels ((create-annotation (start end annotation-text)
(let ((highlight (make-overlay start
end)))
(overlay-put highlight 'face
'annotate-highlight)
- [nongnu] elpa/annotate e2840072db 032/372: undo last change, didn't fix warning, (continued)
- [nongnu] elpa/annotate e2840072db 032/372: undo last change, didn't fix warning, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e1cafc819b 101/372: - removed newlines in snippet text;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 74699a2a70 102/372: - making loading multiple time this mode with no effect on the buffer, ELPA Syncer, 2022/02/04
- [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 <=
- [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, 2022/02/04
- [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