diff options
| author | Stefan Monnier | 2023-11-12 11:37:38 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2023-11-12 11:37:38 -0500 |
| commit | b86dcea37c86a3b9cb9fc6c4656b481b2ad1c1e5 (patch) | |
| tree | f970fa6143d822ad5031f1e4319325c76c31c23b /java | |
| parent | fbb897b7af53cdb43e18322c5cdfbfef7cdda1ee (diff) | |
| download | emacs-b86dcea37c86a3b9cb9fc6c4656b481b2ad1c1e5.tar.gz emacs-b86dcea37c86a3b9cb9fc6c4656b481b2ad1c1e5.zip | |
(derived-mode-all-parents): Fix handling of cycles
* lisp/subr.el (derived-mode-all-parents): Fix the handling of cycles
so that it doesn't fill the cache with incorrect results.
(merge-ordered-lists): Improve docstring.
(provided-mode-derived-p): Swap the loops since `modes` is usually
shorter than `ps`.
* test/lisp/subr-tests.el (subr-tests--parent-mode): Simplify.
(subr-tests--mode-A, subr-tests--mode-B, subr-tests--mode-C): New funs.
(subt-tests--derived-mode-add-parents): New test.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions