[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 08f520f09a 119/372: - try to elaborate more a fun
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 08f520f09a 119/372: - try to elaborate more a function goal. |
Date: |
Fri, 4 Feb 2022 16:58:26 -0500 (EST) |
branch: elpa/annotate
commit 08f520f09aca8ef0807a7091011bbaf2ca367799
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>
- try to elaborate more a function goal.
---
annotate.el | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/annotate.el b/annotate.el
index af7428de78..a31134abb7 100644
--- a/annotate.el
+++ b/annotate.el
@@ -983,11 +983,18 @@ essentially what you get from:
(string= "" a)))
(defun annotate-create-annotation (start end &optional text sample)
- "Create a new annotation for selected region.
- If the annotated text can not be found in the interval as
- defined in the metadata database try to find a matching text
- in a region surrounding the interval and, if found, annotate
- that text."
+ "Create a new annotation for selected region. If this function
+ is called from procedure 'annotate-load-annotations' the
+ argument 'sample' 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 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 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 676d9863f9 048/372: fix undo bug, (continued)
- [nongnu] elpa/annotate 676d9863f9 048/372: fix undo bug, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4dc3e70920 059/372: fixes bug for too-wide characters, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate cb8de5081a 078/372: Merge pull request #42 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 80e6b31c78 084/372: - fixed docstring., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 519aab08ba 100/372: - added a better handling of characters with width > 1., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d07e406251 097/372: - changed prefix for annotation in summary window., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate cf76d79c00 074/372: - fixed docstring., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3341c23e5f 038/372: don't annotate or save empty regions, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 242104e55a 108/372: - changed functions name, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 55e318b172 124/372: - fixed reference to a non-existent variable in the procedure that, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 08f520f09a 119/372: - try to elaborate more a function goal.,
ELPA Syncer <=
- [nongnu] elpa/annotate 354653496d 115/372: - added a bit of (very simple) heuristic to place annotation in the, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a1be01d886 134/372: - try to guess the actual file name of an info document when showing, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 16e0346481 128/372: - prevent showing of summary window if metadata contains no annotations at all., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6ceeb44774 133/372: - removed check for buffer file name in funcion called just before a, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate db9e064342 132/372: - added features: annotate info documents., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4bcecdc875 156/372: - replaced 'splitted-annotation' with 'multiline-annotation'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4fde80fe79 168/372: - updated software version number in the comment on top of the source code;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 696f4ee0cd 167/372: Merge pull request #55 from cage2/update-doc, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a59cc2c6b2 172/372: - when 'delete' button from a summary window is activated redraw and, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 412053cefc 173/372: - [bugfix] When a window is resized ensure that the sizes are, ELPA Syncer, 2022/02/04