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

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

[nongnu] elpa/hl-block-mode 047f9a972c 20/64: fix byte-compile nag


From: ELPA Syncer
Subject: [nongnu] elpa/hl-block-mode 047f9a972c 20/64: fix byte-compile nag
Date: Thu, 7 Jul 2022 12:00:05 -0400 (EDT)

branch: elpa/hl-block-mode
commit 047f9a972cf1c73cbc8623f5e689ac6676cfa6ae
Author: riscy <riscy@users.noreply.github.com>
Commit: riscy <riscy@users.noreply.github.com>

    fix byte-compile nag
---
 hl-block-mode.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/hl-block-mode.el b/hl-block-mode.el
index 7e3220be48..57ce8f88ec 100644
--- a/hl-block-mode.el
+++ b/hl-block-mode.el
@@ -137,11 +137,6 @@ Inverse of `color-values'."
              (setq end-prev end)))
          (cdr block-list))))))
 
-(defun hl-block--overlay-refresh-from-timer ()
-  "Ensure this mode has not been disabled before highlighting.
-This can happen when switching buffers."
-  (when hl-block-mode (hl-block--overlay-refresh)))
-
 ;; Timer
 (defvar hl-block--delay-timer nil)
 
@@ -176,6 +171,11 @@ This can happen when switching buffers."
          (jit-lock-unregister 'hl-block-mode-enable)
          (hl-block-mode-disable))))
 
+(defun hl-block--overlay-refresh-from-timer ()
+  "Ensure this mode has not been disabled before highlighting.
+This can happen when switching buffers."
+  (when hl-block-mode (hl-block--overlay-refresh)))
+
 ;;;###autoload
 (define-globalized-minor-mode global-hl-block-mode hl-block-mode
   hl-block-mode-turn-on)



reply via email to

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