]> git.eshelyaron.com Git - emacs.git/commit
Split up and add tests for two page.el functions
authorSimen Heggestøyl <simenheg@gmail.com>
Sat, 22 Jun 2019 10:49:04 +0000 (12:49 +0200)
committerSimen Heggestøyl <simenheg@gmail.com>
Sun, 23 Jun 2019 05:27:19 +0000 (07:27 +0200)
commitabf7d0d802728e0ae8e064683eb5fb411bad911e
treedff14f64a25a3f5245a6a06e6cf173f855e53679
parentb9d0337c84a6be7f26fd7134615048293320e234
Split up and add tests for two page.el functions

* lisp/textmodes/page.el (page--count-lines-page): New function
extracted from `count-lines-page'.
(count-lines-page): Extract main logic into `page--count-lines-page'.
(page--what-page); New function extracted from `what-page'.
(what-page): Extract main logic into `page--what-page'.

* test/lisp/textmodes/page-tests.el (page-tests-count-lines-page)
(page-tests-what-page): New tests for `page--count-lines-page' and
`page--what-page'.  (Bug#36009)
lisp/textmodes/page.el
test/lisp/textmodes/page-tests.el