branch: externals/wcheck-mode
commit 53555c6faf22c193eb61c3b56be613a906c8b56a
Author: Teemu Likonen <tliko...@iki.fi>
Commit: Teemu Likonen <tliko...@iki.fi>

    Fix wcheck--generate-face-predicate: return lambda in all cases
---
 wcheck-mode-pkg.el | 2 +-
 wcheck-mode.el     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/wcheck-mode-pkg.el b/wcheck-mode-pkg.el
index e982515..38f80de 100644
--- a/wcheck-mode-pkg.el
+++ b/wcheck-mode-pkg.el
@@ -1,2 +1,2 @@
-(define-package "wcheck-mode" "2015.11.29"
+(define-package "wcheck-mode" "2016.1.5"
   "General interface for text checkers")
diff --git a/wcheck-mode.el b/wcheck-mode.el
index 0104b59..49a2d24 100644
--- a/wcheck-mode.el
+++ b/wcheck-mode.el
@@ -1932,7 +1932,7 @@ expression will return a boolean."
          (mode (nth 1 face-settings))
          (faces (nthcdr 2 face-settings)))
     (cond ((not font-lock-mode)
-           t)
+           (lambda () t))
           ((eq mode 'read)
            `(lambda ()
               (wcheck--face-found-p
@@ -1943,7 +1943,7 @@ expression will return a boolean."
               (not (wcheck--face-found-p
                     ',faces (wcheck--collect-faces
                              (match-beginning 1) (match-end 1))))))
-          (t t))))
+          (t (lambda () t)))))
 
 
 ;;; Miscellaneous low-level functions

Reply via email to