branch: externals/guess-language
commit 5ab21de7a0f83c31ed1537f90689317ebf21485e
Author: Titus von der Malsburg <[email protected]>
Commit: Titus von der Malsburg <[email protected]>

    Fix bug that prevented Flyspell from highlighting incorrect words.
---
 guess-language.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/guess-language.el b/guess-language.el
index b280f5b..3c3f6c2 100644
--- a/guess-language.el
+++ b/guess-language.el
@@ -185,7 +185,10 @@ things like changing the keyboard layout or input method."
 (defun guess-language-function (beginning end doublon)
   "Wrapper for `guess-language' because `flyspell-incorrect-hook'
 provides three arguments that we don't need."
-  (guess-language))
+  (guess-language)
+  ;; Return nil because flyspell may otherwise not highlight incorrect
+  ;; words:
+  nil)
 
 (defun guess-language-switch-flyspell-function (lang beginning end)
   "Switch the Flyspell dictionary spell-checks current paragraph.

Reply via email to