]> git.eshelyaron.com Git - emacs.git/commitdiff
Check for mis-quoted #' in doc strings during byte-compile
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 3 Aug 2022 11:14:24 +0000 (13:14 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 3 Aug 2022 11:14:32 +0000 (13:14 +0200)
* lisp/emacs-lisp/bytecomp.el (byte-compile-docstring-style-warn):
Check for mis-quoted #' in doc strings, too.

lisp/emacs-lisp/bytecomp.el

index b4954eee9ff1164adb4910901d36da98faee4174..7d2971502da4208c109e2c3836e3f32645192def 100644 (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))