[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 50ac6fb2fe 06/17: - explained why we need too hoo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 50ac6fb2fe 06/17: - explained why we need too hook into 'window-configuration-change-hook' |
Date: |
Fri, 25 Feb 2022 14:57:56 -0500 (EST) |
branch: elpa/annotate
commit 50ac6fb2fe1f055a57362cefd449f03493217d9d
Author: cage <cage@invalid>
Commit: cage <cage@invalid>
- explained why we need too hook into 'window-configuration-change-hook'
and 'annotate-blacklist-major-mode'.
---
annotate.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/annotate.el b/annotate.el
index 8d4ab6a3f1..a5867f7624 100644
--- a/annotate.el
+++ b/annotate.el
@@ -131,9 +131,11 @@ that Emacs passes to the diff program."
:type 'string)
(defcustom annotate-blacklist-major-mode '()
- ;; FIXME: When/why would this be needed?
- "Prevent loading of annotate-mode When the visited file's
-major mode is a member of this list (space separated entries)."
+ "Prevent loading of annotate-mode When the visited file's major
+mode is a member of this list (space separated entries). This
+could be useful if some mode does not work well with annotate as
+this ensure that it will be never loaded, see
+`annotate-initialize-maybe'."
:type '(repeat symbol))
(defcustom annotate-summary-ask-query t
@@ -435,7 +437,9 @@ modified (for example a newline is inserted)."
"Load annotations and set up save and display hooks."
(annotate-load-annotations)
(add-hook 'after-save-hook #'annotate-save-annotations t t)
- (add-hook 'window-configuration-change-hook #'font-lock-flush t t) ;FIXME:
Why?
+ ;; This hook is needed to reorganize the layout of the annotation
+ ;; text when a window vertically resized
+ (add-hook 'window-configuration-change-hook #'font-lock-flush t t)
(add-hook 'before-change-functions #'annotate-before-change-fn t t)
(add-hook 'Info-selection-hook #'annotate-info-select-fn t t)
(if annotate-use-echo-area
- [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 <=
- [nongnu] elpa/annotate 87a96e186c 08/17: - explained why we need to use 'after-hook'., ELPA Syncer, 2022/02/25
- [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