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

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

[nongnu] elpa/spell-fu 570ccd84ed 64/86: Fix spell-fu-goto-{next/prev}-e


From: ELPA Syncer
Subject: [nongnu] elpa/spell-fu 570ccd84ed 64/86: Fix spell-fu-goto-{next/prev}-error silently failing
Date: Thu, 7 Jul 2022 12:03:44 -0400 (EDT)

branch: elpa/spell-fu
commit 570ccd84edddb60e6fc0f6bde5a9fb9b07ed2aa0
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Fix spell-fu-goto-{next/prev}-error silently failing
    
    When spell-fu minor mode wasn't enabled, these commands did nothing.
    
    Now an error is raised instead.
---
 spell-fu.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/spell-fu.el b/spell-fu.el
index 1f5de55ca3..c27d3a778c 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -939,6 +939,10 @@ The VERBOSE argument reports the findings."
   "Jump to the next or previous error using DIR.
 
 Return t when found, otherwise nil."
+
+  (unless (bound-and-true-p spell-fu-mode)
+    (user-error "Spell-fu: enable `spell-fu-mode' before using this command!"))
+
   (let
     ( ;; Track the closest point in a given line.
       (point-found-delta most-positive-fixnum)



reply via email to

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