]> git.eshelyaron.com Git - emacs.git/commit
checkdoc: 'y-or-n-p' no longer needs space
authorStefan Kangas <stefan@marxist.se>
Thu, 16 Sep 2021 17:13:56 +0000 (19:13 +0200)
committerStefan Kangas <stefan@marxist.se>
Fri, 17 Sep 2021 20:24:12 +0000 (22:24 +0200)
commitb6bff3ba7971daad737690d88a3921f1dd190476
tree3193668b29522417eb4566c45f50c534d7d95051
parent174430e35186b1554eafe6ab1227ab9697224a56
checkdoc: 'y-or-n-p' no longer needs space

* lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-engine):
Change 'y-or-n-p' check to accept prompt ending with both "? " or "?",
that is, it no longer needs the space.  (Bug#50621)
(checkdoc--fix-y-or-n-p): New helper function.
* test/lisp/emacs-lisp/checkdoc-tests.el (checkdoc-tests-fix-y-or-n-p)
(checkdoc-tests-fix-y-or-n-p/no-change)
(checkdoc-tests-fix-y-or-n-p/with-space): New tests.
lisp/emacs-lisp/checkdoc.el
test/lisp/emacs-lisp/checkdoc-tests.el