]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor improvement in textsec diagnostics
authorEli Zaretskii <eliz@gnu.org>
Wed, 19 Jan 2022 08:57:03 +0000 (10:57 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 19 Jan 2022 08:57:03 +0000 (10:57 +0200)
* 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

index c1be5364a9a93f3f23908552dea729c304607d72..524052d49d7581ad9a73911b56954111d9988499 100644 (file)
@@ -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)))