]> git.eshelyaron.com Git - emacs.git/commit
Warn about docstrings with control characters
authorMattias EngdegÄrd <mattiase@acm.org>
Fri, 23 Feb 2024 12:57:04 +0000 (13:57 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:42:35 +0000 (18:42 +0100)
commit7f0af2513d68d85b4b6422d139a122696b99994c
tree00887375edc9510f3aaf2070248b8e70dd348176
parent6a1a628b440e2efb56c7260c787634ae6cdaf857
Warn about docstrings with control characters

It is easy to include control chars in doc strings by mistake, and the
result is often an unreadable mess.

* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types)
(byte-compile-warnings, byte-compile--docstring-style-warn):
Add `docstrings-control-chars` warning.
* etc/NEWS: Announce.

(cherry picked from commit 90d3b3408e404aba383302c3147d3ca614619986)
etc/NEWS
lisp/emacs-lisp/bytecomp.el