]> git.eshelyaron.com Git - emacs.git/commit
checkdoc: Avoid false positive for keybinding in docstring
authorStefan Kangas <stefankangas@gmail.com>
Sun, 24 Dec 2023 13:27:48 +0000 (14:27 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 24 Dec 2023 16:09:33 +0000 (17:09 +0100)
commit18a64541420afadea9a887386f3182334e2b888e
tree0df81ed9dcbe48653675ef4ca2e4247a5f328d51
parente4bfdea8fec98c1271a9a7ae0c00d4f48e604844
checkdoc: Avoid false positive for keybinding in docstring

* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Avoid false positive when a variable contains a keybinding (for
example, "C-g").  (Bug#68002)
* test/lisp/emacs-lisp/checkdoc-tests.el
(checkdoc-docstring-avoid-false-positive-ok): New test.

(cherry picked from commit 13e46e2c1d33a3a48ecdcb56b745dbc53a4a3831)
lisp/emacs-lisp/checkdoc.el
test/lisp/emacs-lisp/checkdoc-tests.el