1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-05 23:21:22 -08:00

Improve the textsec-domain-suspicious-p warning message

* lisp/international/textsec.el (textsec-domain-suspicious-p):
Improve warning message.
This commit is contained in:
Lars Ingebrigtsen 2022-01-20 13:37:26 +01:00
parent ec5c723844
commit 10fbbddddd

View file

@ -245,8 +245,11 @@ or use certain other unusual mixtures of characters."
(lambda (char)
(when (eq (elt idna-mapping-table char) t)
(throw 'found
(format "Disallowed character: `%s' (#x%x, %s)"
(bidi-string-strip-control-characters (string char))
(format "Disallowed character%s (#x%x, %s)"
(if (eq (get-char-code-property char 'general-category)
'Cf)
""
(concat ": " (string char)))
char
(get-char-code-property char 'name)))))
domain)