[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spell-fu bddea99f9c 17/21: Fix #36: byte compilation error
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spell-fu bddea99f9c 17/21: Fix #36: byte compilation error with Emacs 28.2 |
Date: |
Sat, 7 Jan 2023 07:12:29 -0500 (EST) |
branch: elpa/spell-fu
commit bddea99f9cffdde8cdeb2bf92fb90af83554d059
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Fix #36: byte compilation error with Emacs 28.2
---
spell-fu.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/spell-fu.el b/spell-fu.el
index db3e4a1b70..63eaf3b936 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -48,6 +48,8 @@
(require 'faces)
;; For variables we read `ispell-personal-dictionary' local dictionary, etc.
(require 'ispell)
+;; For `string-blank-p'.
+(require 'subr-x)
;; ---------------------------------------------------------------------------
@@ -189,12 +191,14 @@ Notes:
;; Developer note, don't use this for logging the checking of individual words,
;; that is far too verbose, this is mainly for checking why dictionaries aren't
;; being properly initialized.
+
(defmacro spell-fu--debug-message (fmt &rest args)
"Debug message logging passing FMT and ARGS to `message'."
- (when spell-fu-debug
+ ;; When emacs 28.2 support is dropped,
+ ;; this can simply check `spell-fu-debug', see: #36.
+ (when (bound-and-true-p spell-fu-debug)
`(apply 'message (list (concat "spell-fu-debug: " ,fmt) ,@args))))
-
;; ---------------------------------------------------------------------------
;; Dictionary Utility Functions
@@ -1634,7 +1638,7 @@ Argument DICT-FILE is the absolute path to the
dictionary."
;;;###autoload
(defun spell-fu-buffer-session-localwords-update ()
"Refresh after changing `spell-fu-buffer-session-localwords'."
- (when spell-fu-mode
+ (when (bound-and-true-p spell-fu-mode)
(spell-fu--buffer-localwords-update-impl)))
;; ---------------------------------------------------------------------------
- [nongnu] elpa/spell-fu 83890ae6d3 01/21: Cleanup: quiet quote warnings, (continued)
- [nongnu] elpa/spell-fu 83890ae6d3 01/21: Cleanup: quiet quote warnings, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu ed504863f5 05/21: Fix #13: Every word marked as incorrect on MS-Windows, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 219bc124a6 14/21: Cleanup: use private convention for mode management functions, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu df9abe16e2 02/21: Cleanup: sharp-quote function, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 57a678a3c4 07/21: Cleanup: sharp-quote function, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu f62b6d3770 12/21: Cleanup: doc-string length, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu be719051a6 13/21: readme: note when reset may be needed, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu f0d49dcc5a 16/21: Cleanup: emacs native format, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu d0e67cdb25 06/21: When using jit-lock-stealth, ensure words out of the view are checked, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 341575b1d0 10/21: Adding spell-fu-debug variable & spell-fu-reset command, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu bddea99f9c 17/21: Fix #36: byte compilation error with Emacs 28.2,
ELPA Syncer <=
- [nongnu] elpa/spell-fu 68d33508ef 04/21: Add support for buffer local word-lists, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu b89bfe035d 20/21: Cleanup: correct typo in description, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 0dc0568186 11/21: Update doc-string and readme for spell-fu-faces-exclude, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 8412ba02df 03/21: Cleanup: use `zerop`, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 95e005969d 09/21: Cleanup: replace 'if' with 'cond', ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 635c5c2eed 19/21: Cleanup: sharp-quote function, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 38f4a4a275 08/21: Fix #31: Failure to detect updated symlinked dictionaries, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 89b014194a 18/21: Cleanup: emacs native format (update), ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 39549871c7 15/21: Cleanup: format, ELPA Syncer, 2023/01/07
- [nongnu] elpa/spell-fu 3caf7047ea 21/21: Rename functions & variables that used a global- prefix, ELPA Syncer, 2023/01/07