Documentation is:
- C-hig
(elisp)Keys in Documentation
- C-hig
(elisp)Text Quoting Style
In short, the text-quoting-style
feature introduced in Emacs 25 made
it impossible to use certain characters in docstrings (most notably
the normal ascii apostrophes which are so very prevalent in lisp)
without escaping them with \=
(which is "\\="
in the double-quoted read syntax for strings), as otherwise they are liable to be
replaced by different quote characters at render time.
So to write a docstring containing an apostrope, you must use this:
"\\='"
instead of simply
"'"
It's a compiler warning because it very likely indicates that the docstring displays invalid lisp code. (Some people have argued for it to be relegated to checkdoc, but that would dramatically limit the number of people who notice these bugs, so I suspect it'll remain a byte-compilation warning.)
If you're seeing these in third-party packages, submit bug reports.
Tangentially, you can ensure you're never affected by such bugs by using the old-style docstring rendering, by setting text-quoting-style
to grave
.