<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-flyspell-and-abbrev.el, branch main</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-05-23T08:46:39+00:00</updated>
<entry>
<title>test(flyspell-abbrev): cover checker gate, overlay search, mode dispatch</title>
<updated>2026-05-23T08:46:39+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-23T08:46:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=0c1ba4a21228c8adc338b2652dd4b80d3ca84b2d'/>
<id>urn:sha1:0c1ba4a21228c8adc338b2652dd4b80d3ca84b2d</id>
<content type='text'>
flyspell-and-abbrev.el had no tests. I added eight: cj/--require-spell-checker (errors when no checker is on PATH, passes when one is), cj/find-previous-flyspell-overlay against synthetic overlays (finds the closest previous flyspell overlay, ignores non-flyspell ones, returns nil when none exist), and cj/flyspell-on-for-buffer-type dispatching to flyspell-prog-mode in code buffers and flyspell-mode in text buffers.

I left cj/flyspell-then-abbrev to manual testing. Pinning its flyspell-UI orchestration would mean mocking flyspell internals rather than our own logic.
</content>
</entry>
</feed>
