From 596d0bda6da8b8c9092bc3778738912c7bdfc544 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 19 Jan 2022 10:57:03 +0200 Subject: [PATCH] Minor improvement in textsec diagnostics * lisp/international/textsec.el (textsec-suspicious-nonspacing-p): Clarify wording of the strings returned to explain the suspicious use of nonspacing characters. --- lisp/international/textsec.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/international/textsec.el b/lisp/international/textsec.el index c1be5364a9a..524052d49d7 100644 --- a/lisp/international/textsec.el +++ b/lisp/international/textsec.el @@ -304,13 +304,13 @@ consecutive nonspacing characters." '(Cf Cc Mn)))) (when (and nonspacing (equal char prev)) - (throw 'found "Two identical nonspacing characters in a row")) + (throw 'found "Two identical consecutive nonspacing characters")) (setq nonspace-count (if nonspacing (1+ nonspace-count) 0)) (when (> nonspace-count 4) (throw 'found - "Excessive number of nonspacing characters in a row")) + "Too many consecutive nonspacing characters")) (setq prev char))) string) nil))) -- 2.39.2