emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0596c69186 2/2: Check for mis-quoted #' in doc strings during byt


From: Lars Ingebrigtsen
Subject: master 0596c69186 2/2: Check for mis-quoted #' in doc strings during byte-compile
Date: Wed, 3 Aug 2022 07:14:42 -0400 (EDT)

branch: master
commit 0596c6918667704c486bd7ffba8b13572b8237d9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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.
---
 lisp/emacs-lisp/bytecomp.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index b4954eee9f..7d2971502d 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]