Use substitute-quotes for checkdoc errors

* lisp/emacs-lisp/checkdoc.el (checkdoc-create-error): Use
substitute-quotes.
This commit is contained in:
Stefan Kangas 2025-03-15 19:26:31 +01:00
parent d8d524071d
commit dec21bcc99

View file

@ -1283,7 +1283,8 @@ generating a buffered list of errors.")
"Used to create the return error text returned from all engines.
TEXT, START, END and UNFIXABLE conform to
`checkdoc-create-error-function', which see."
(funcall checkdoc-create-error-function text start end unfixable))
(funcall checkdoc-create-error-function
(substitute-quotes text) start end unfixable))
(defun checkdoc--create-error-for-checkdoc (text start end &optional unfixable)
"Create an error for Checkdoc.