diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-08-03 13:14:24 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-08-03 13:14:32 +0200 |
commit | 0596c6918667704c486bd7ffba8b13572b8237d9 (patch) | |
tree | 5887c875ddd00daa5c1d44e1b5edc730ae9098ab /lisp/emacs-lisp | |
parent | 0a6e2b3bfce8b5ae9e713e0668cb3cf5609073e2 (diff) | |
download | emacs-0596c6918667704c486bd7ffba8b13572b8237d9.tar.gz emacs-0596c6918667704c486bd7ffba8b13572b8237d9.tar.bz2 emacs-0596c6918667704c486bd7ffba8b13572b8237d9.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index b4954eee9ff..7d2971502da 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -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)) |