From 7f51cc854af6f6696e045cbbb8e8c1a968f2fb27 Mon Sep 17 00:00:00 2001 From: Tobias Zawada Date: Thu, 8 Feb 2024 09:18:58 +0100 Subject: [PATCH] #49 Check the last letter of the preceding word for adoc-flyspell-ignore --- adoc-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adoc-mode.el b/adoc-mode.el index f65a5db..db7f4a9 100644 --- a/adoc-mode.el +++ b/adoc-mode.el @@ -3794,7 +3794,9 @@ Turning on Adoc mode runs the normal hook `adoc-mode-hook'." "Function for `flyspell-mode-predicate' property of `adoc-mode'. Returns t if word at point should be checked, nil otherwise." (font-lock-ensure (line-beginning-position) (line-end-position)) - (null (get-text-property (point) 'adoc-flyspell-ignore))) + (null (get-text-property + (1- (point)) ;; preceding word is checked, so 1- should do no harm + 'adoc-flyspell-ignore))) (put 'adoc-mode 'flyspell-mode-predicate 'adoc-flyspell-p)