Check for mis-quoted #' in doc strings during byte-compile

* lisp/emacs-lisp/bytecomp.el (byte-compile-docstring-style-warn):
Check for mis-quoted #' in doc strings, too.
This commit is contained in:
Lars Ingebrigtsen 2022-08-03 13:14:24 +02:00
parent 0a6e2b3bfc
commit 0596c69186

View file

@ -1760,7 +1760,7 @@ It is too wide if it has any lines longer than the largest of
kind name col))
;; There's a "naked" ' character before a symbol/list, so it
;; should probably be quoted with \=.
(when (string-match-p "\\( \"\\|[ \t]\\|^\\)'[a-z(]" docs)
(when (string-match-p "\\( [\"#]\\|[ \t]\\|^\\)'[a-z(]" docs)
(byte-compile-warn-x
name "%s%sdocstring has wrong usage of unescaped single quotes (use \\= or different quoting)"
kind name))