]> git.eshelyaron.com Git - emacs.git/commit
Avoid jumping too far in checkdoc-in-abbreviation-p
authorStefan Kangas <stefan@marxist.se>
Thu, 23 Sep 2021 19:10:08 +0000 (21:10 +0200)
committerStefan Kangas <stefan@marxist.se>
Thu, 23 Sep 2021 20:35:40 +0000 (22:35 +0200)
commit55083d90a30628d9eaa5b94196291ca15098aed0
tree1bab2243c4edf1201c142f8c5bda07be61618571
parent387af85c4d51dd98267f296bc91cf22d7ecc5374
Avoid jumping too far in checkdoc-in-abbreviation-p

* lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Use
'forward-ward' instead of 'forward-sexp' to avoid jumping too far in
some situations.  (Bug#50731)

* test/lisp/emacs-lisp/checkdoc-tests.el
(checkdoc-tests--abbrev-test): New helper function.
(checkdoc-tests-in-abbrevation-p/basic-case): Rename from
'checkdoc-tests-in-abbrevation-p'.
(checkdoc-tests-in-abbrevation-p/with-parens)
(checkdoc-tests-in-abbrevation-p/with-escaped-parens): Use above new
helper function.
(checkdoc-tests-in-abbrevation-p/single-char)
(checkdoc-tests-in-abbrevation-p/with-em-dash)
(checkdoc-tests-in-abbrevation-p/incorrect-abbreviation): New tests.
lisp/emacs-lisp/checkdoc.el
test/lisp/emacs-lisp/checkdoc-tests.el