summaryrefslogtreecommitdiff
path: root/test/lisp/elide-head-tests.el
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* elide-head: Make trailing "/" in URL optionalStefan Kangas2022-10-301-5/+16
| | | | | | | * lisp/elide-head.el (elide-head-headers-to-hide): Make trailing "/" in the gnu.org URL optional for the GPL. * test/lisp/elide-head-tests.el (elide-head--test-headers-to-hide/gpl3-5): New test.
* New minor mode elide-head-modeStefan Kangas2022-01-091-14/+74
| | | | | | | | | | | | | | | | | | | * lisp/elide-head.el (elide-head-mode): New minor mode. (Bug#52980) (elide-head--delete-overlay, elide-head--show) (elide-head--hide): New functions factored out from ... (elide-head, elide-head-show): ... here. Make obsolete in favor of elide-head-mode. (elide-head-headers-to-hide): Doc fix. * test/lisp/elide-head-tests.el (ert-x): Require. (elide-head-tests-elide-head-mode) (elide-head-tests-elide-head-mode/enable-disable) (elide-head-tests-elide-head-mode/normal-mode) (elide-head-tests-elide-head-mode/revert-buffer): New tests. (elide-head--add-test): Update test to use elide-head-mode. (elide-head-tests-elide-head) (elide-head-tests-elide-head-with-prefix-arg) (elide-head-tests-show): Make obsolete.
* elide-head: Make GPL regexp more forgivingStefan Kangas2022-01-031-0/+105
| | | | | | | | | | | * lisp/elide-head.el (elide-head-headers-to-hide): Make GPL regexp more forgiving. * test/lisp/elide-head-tests.el (elide-head--add-test): New macro. (elide-head--test-headers-to-hide/gpl2-1) (elide-head--test-headers-to-hide/gpl3-1) (elide-head--test-headers-to-hide/gpl3-2) (elide-head--test-headers-to-hide/gpl3-3) (elide-head--test-headers-to-hide/gpl3-4): New tests.
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
|
* Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Use lexical-binding in elide-head.el and add testsSimen Heggestøyl2020-04-191-0/+62
* lisp/elide-head.el: Use lexical-binding. (elide-head-headers-to-hide): Remove redundant :group arg. (elide-head-overlay): Use `defvar-local'. (elide-head-show): Fix docstring. * test/lisp/elide-head-tests.el: New file with tests for elide-head.el.