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

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

[nongnu] elpa/hl-block-mode dc5b0153bb 35/64: Cleanup: byte-code compila


From: ELPA Syncer
Subject: [nongnu] elpa/hl-block-mode dc5b0153bb 35/64: Cleanup: byte-code compilation warnings
Date: Thu, 7 Jul 2022 12:00:07 -0400 (EDT)

branch: elpa/hl-block-mode
commit dc5b0153bbc4c5d2ca7cadaa48075a9ebccebf12
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Cleanup: byte-code compilation warnings
---
 hl-block-mode.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hl-block-mode.el b/hl-block-mode.el
index 0c61fd2236..bcd12f1261 100644
--- a/hl-block-mode.el
+++ b/hl-block-mode.el
@@ -1,6 +1,6 @@
 ;;; hl-block-mode.el --- highlighting nested blocks -*- lexical-binding: t -*-
 
-;; Copyright (C) 2019  Campbell Barton
+;; Copyright (C) 2019-2021  Campbell Barton
 
 ;; Author: Campbell Barton <ideasman42@gmail.com>
 
@@ -54,7 +54,7 @@ Set to nil to use all brackets."
   :type 'float)
 
 (defcustom hl-block-mode-lighter ""
-  "Lighter for hl-block-mode."
+  "Lighter for `hl-block-mode'."
   :group 'hl-block-mode
   :type 'string)
 
@@ -145,7 +145,7 @@ Inverse of `color-values'."
 (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
+  (when (bound-and-true-p hl-block-mode)
     (hl-block--overlay-refresh)))
 
 (defun hl-block--overlay-delay ()
@@ -168,7 +168,7 @@ This can happen when switching buffers."
 
 (defun hl-block-mode-turn-on ()
   "Enable command `hl-block-mode'."
-  (when (and (not (minibufferp)) (not hl-block-mode))
+  (when (and (not (minibufferp)) (not (bound-and-true-p hl-block-mode)))
     (hl-block-mode 1)))
 
 ;;;###autoload



reply via email to

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