[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 87a96e186c 08/17: - explained why we need to use
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 87a96e186c 08/17: - explained why we need to use 'after-hook'. |
Date: |
Fri, 25 Feb 2022 14:57:56 -0500 (EST) |
branch: elpa/annotate
commit 87a96e186c859d37e960dd229dfd21505670e91e
Author: cage <cage@invalid>
Commit: cage <cage@invalid>
- explained why we need to use 'after-hook'.
---
annotate.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/annotate.el b/annotate.el
index 608a4212e2..f8c47993e7 100644
--- a/annotate.el
+++ b/annotate.el
@@ -76,7 +76,10 @@
See https://github.com/bastibe/annotate.el/ for documentation."
:lighter " Ann"
:group 'annotate
- ;; FIXME: Why `:after-hook'?
+ ;; we use `:after-hook` to prevent running initialization code for
+ ;; this mode if the buffer already has annotate-mode active and to
+ ;; prevent loading the annotate in blacklisted modes (see:
+ ;; `annotate-blacklist-major-mode').
:after-hook (annotate-initialize-maybe))
(defcustom annotate-file (locate-user-emacs-file "annotations" ".annotations")
@@ -314,7 +317,7 @@ annotation as defined in the database."
(defun annotate-initialize-maybe ()
"Initialize annotate mode only if buffer's major mode is not in the
blacklist.
-See 'annotate-blacklist-major-mode'."
+See: `annotate-blacklist-major-mode'."
(let ((annotate-allowed-p (with-current-buffer (current-buffer)
(not (apply #'derived-mode-p
annotate-blacklist-major-mode)))))
(cond
- [nongnu] elpa/annotate updated (0cfad246ee -> 5bf59f8038), ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 58bbb16e07 02/17: - fixed typo in docstring., ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 683ebed03a 04/17: -removed macros 'annotate-with-inhibit-modification-hooks' and, ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate f717cb2514 05/17: - improved comment., ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 50ac6fb2fe 06/17: - explained why we need too hook into 'window-configuration-change-hook', ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 87a96e186c 08/17: - explained why we need to use 'after-hook'.,
ELPA Syncer <=
- [nongnu] elpa/annotate f2dd24802e 13/17: - removed nested 'if' inside a call to 'list'., ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 5bf59f8038 17/17: Merge pull request #122 from cage2/feedback-nonGNU, ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 3ea6b0c03f 01/17: - patched code as suggested from emacs maintainer., ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 1f159c36e3 07/17: - commenting call to 'font-lock-flush' when removing annotation, ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 1507291640 10/17: - fixed comment., ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate f7c4fc47ab 09/17: - removed reference in a comment for a non existent argument function., ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 11de81414b 11/17: - flipped order of entries in the news file, now is from more recent to older., ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 1095c49530 12/17: - added NonGNU ELPA badge., ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate acca7ab1f5 03/17: - substituted custom prompt with a call to 'y-or-no-p'., ELPA Syncer, 2022/02/25
- [nongnu] elpa/annotate 7bc6cb2e0b 14/17: - removed commented code., ELPA Syncer, 2022/02/25