emacs-devel
[Top][All Lists]
Advanced

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

Re: How to disable warnings about single quotes in emacs-29


From: Michael Heerdegen
Subject: Re: How to disable warnings about single quotes in emacs-29
Date: Wed, 08 Jun 2022 11:44:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Thierry Volpiatto <thievol@posteo.net> writes:

> Checkdoc is nice, but it would be too much work to fix such warnings
> with checkdoc one buffer after the other (48 buffers), I had to use a
> function that do it all at once without asking.

`byte-compile-docstring-style-warn' does this:

#+begin_src emacs-lisp
(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))
#+end_src

Maybe you can use that regexp to find a (semi) automated way of fixing?

Michael.




reply via email to

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