[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate a1c55fc98a 085/372: - added more docstrings.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate a1c55fc98a 085/372: - added more docstrings. |
Date: |
Fri, 4 Feb 2022 16:58:21 -0500 (EST) |
branch: elpa/annotate
commit a1c55fc98a62631989e4422214546ab0393a96a3
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>
- added more docstrings.
---
annotate.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/annotate.el b/annotate.el
index cee13952bf..cad9d4f333 100644
--- a/annotate.el
+++ b/annotate.el
@@ -126,7 +126,7 @@ less than this size (in characters)"
"from the last time the annotations were saved.\n"
"Chances are that they will not be displayed correctly")
"The message to warn the user that file has been modified and
- annototatnions position could be outdated")
+ annotations positions could be outdated")
(defcustom annotate-blacklist-major-mode '(org-mode)
"Prevent loading of annotate-mode When the visited file's
@@ -135,6 +135,8 @@ major mode is a member of this list (space separated
entries)."
:group 'annotate)
(defun annotate-initialize-maybe ()
+ "Initialize annotate mode only if buffer's major mode is not in the
blacklist (see:
+'annotate-blacklist-major-mode'"
(let ((annotate-allowed-p (with-current-buffer (current-buffer)
(not (cl-member major-mode
annotate-blacklist-major-mode)))))
(cond
@@ -147,12 +149,16 @@ major mode is a member of this list (space separated
entries)."
(annotate-shutdown)))))
(cl-defun annotate-buffer-checksum (&optional (object (current-buffer)))
+ "Calculate an hash for the buffer 'object', skip the
+ calculation if the buffer is bigger than
+ 'annotate-maximum-size-checksum' (units are character)."
(if (< (buffer-size)
annotate-maximum-size-checksum)
(md5 object)
nil))
(cl-defmacro annotate-with-inhibit-modification-hooks (&rest body)
+ "Wrap 'body' in a block with modification-hooks inhibited."
`(unwind-protect
(progn
(setf inhibit-modification-hooks t)
@@ -180,11 +186,13 @@ major mode is a member of this list (space separated
entries)."
(1 (annotate--change-guard))))))
(defun annotate-overlay-filled-p (overlay)
+ "Does this overlay contains an 'annotation' property?"
(and overlay
(overlayp overlay)
(overlay-get overlay 'annotation)))
(defun annotationp (overlay)
+ "Is 'overlay' an annotation?"
(annotate-overlay-filled-p overlay))
(defun annotate-annotate ()
- [nongnu] elpa/annotate f1ca2b15a3 043/372: add changelog to README, (continued)
- [nongnu] elpa/annotate f1ca2b15a3 043/372: add changelog to README, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 832091a37d 040/372: don't save duplicate annotations, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a169038431 050/372: new export option, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e1206a8965 068/372: - fixed a bug that made 'annotate-export-annotations' fails when the, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate dedbd9e5d5 064/372: removes unnecessary autoloads, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate c9ba9d82f2 041/372: strip properties whenever file name is used, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 9616c55812 057/372: fix for annotations ending on an empty line, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 09d0cd89e4 066/372: Merge pull request #41 from conao3/change-save-file-path, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 475cc56ec6 079/372: - added checksum for files to check if annotations could be updated;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 8937294206 083/372: - better naming a function., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a1c55fc98a 085/372: - added more docstrings.,
ELPA Syncer <=
- [nongnu] elpa/annotate 64bf3dfc8f 089/372: Merge pull request #43 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 7908f0b114 092/372: - renamed function 'annotate-start-annotation-dump' to, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a572602101 094/372: - use 'window-body-width' to truncate the string with an ellipse in a, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 067fe860ea 054/372: added word wrap for long annotations, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3c4da9d71a 093/372: - renamed 'annotate-text-annotation-dump' to 'annotate-text-of-annotation'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 5af5e4139b 099/372: - fixed argument of check for file format version., ELPA Syncer, 2022/02/04
- [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