emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/annotate 4647264264 049/372: auto-reflow annotations when


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 4647264264 049/372: auto-reflow annotations when frame size changes
Date: Fri, 4 Feb 2022 16:58:18 -0500 (EST)

branch: elpa/annotate
commit 46472642647d3588651afb6d5914498b6987a815
Author: Bastian Bechtold <bb@Mr-Bigglesworth.local>
Commit: Bastian Bechtold <bb@Mr-Bigglesworth.local>

    auto-reflow annotations when frame size changes
---
 README.md   | 4 ++--
 annotate.el | 6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 63eb44187e..1527b8d8c7 100644
--- a/README.md
+++ b/README.md
@@ -72,5 +72,5 @@ This package is released under the MIT license.
 - **2015-09-23 V0.4.0 Bastian Bechtold**  
   Completely reworked the display engine for annotations. You can now have 
several annotations per line, and annotations should not move any more when 
editing the line they are on. Finally, annotations can now span several lines.
 
-- **2015-10-06 V0.4.2 Bastian Bechtold**  
-  Bugfixes. No more hidden newlines, no more annotations in undo-list, no more 
error messages with annotations at bol, mark deactivated after creating 
annotation.
+- **2015-10-06 V0.4.3 Bastian Bechtold**  
+  Bugfixes. No more hidden newlines, no more annotations in undo-list, no more 
error messages with annotations at bol, mark deactivated after creating 
annotation, annotations auto-reflow on frame size change.
diff --git a/annotate.el b/annotate.el
index 540f1b13d0..192fa02c87 100644
--- a/annotate.el
+++ b/annotate.el
@@ -5,7 +5,7 @@
 ;; Maintainer: Bastian Bechtold
 ;; URL: https://github.com/bastibe/annotate.el
 ;; Created: 2015-06-10
-;; Version: 0.4.2
+;; Version: 0.4.3
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -50,7 +50,7 @@
 ;;;###autoload
 (defgroup annotate nil
   "Annotate files without changing them."
-  :version "0.4.2"
+  :version "0.4.3"
   :group 'text)
 
 ;;;###autoload
@@ -108,6 +108,7 @@
   "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-fontify-buffer t t)
   (font-lock-add-keywords
    nil '((annotate--font-lock-matcher (2 (annotate--annotation-builder))
                                       (1 (annotate--change-guard))))))
@@ -116,6 +117,7 @@
   "Clear annotations and remove save and display hooks."
   (annotate-clear-annotations)
   (remove-hook 'after-save-hook 'annotate-save-annotations t)
+  (remove-hook 'window-configuration-change-hook 'font-lock-fontify-buffer t)
   (font-lock-remove-keywords
    nil '((annotate--font-lock-matcher (2 (annotate--annotation-builder))
                                       (1 (annotate--change-guard))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]