summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-08-03 13:14:24 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-08-03 13:14:32 +0200
commit0596c6918667704c486bd7ffba8b13572b8237d9 (patch)
tree5887c875ddd00daa5c1d44e1b5edc730ae9098ab /lisp/emacs-lisp
parent0a6e2b3bfce8b5ae9e713e0668cb3cf5609073e2 (diff)
downloademacs-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.el2
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))