<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gloss/tests/test-gloss-display--show-entry-smoke.el, branch main</title>
<subtitle>Emacs glossary lookup with Wiktionary fallback
</subtitle>
<id>https://git.cjennings.net/gloss/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/gloss/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/gloss/'/>
<updated>2026-04-30T05:02:27+00:00</updated>
<entry>
<title>feat: implement gloss-display UI layer</title>
<updated>2026-04-30T05:02:27+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-04-30T05:02:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/gloss/commit/?id=6102ef81e7cc8af7cf847906cbc1bb27fc8a75e5'/>
<id>urn:sha1:6102ef81e7cc8af7cf847906cbc1bb27fc8a75e5</id>
<content type='text'>
Side-buffer display for gloss entries plus the picker shown when an
online fetch returns multiple candidates.

The major mode `gloss-mode' derives from `special-mode' so `q' quits
the window for free. Two pure helpers handle the formatting:
`gloss-display--format-candidate' renders a definition plist as a
single-line "[source] text" row for `completing-read', truncating with
an ellipsis when the row would exceed 80 chars.
`gloss-display--render-entry' produces the term, an underline matching
the term length, a blank line, then the body.

The picker maps the user's choice back to the original plist via an
alist, returning nil on `C-g' rather than letting the quit signal
propagate. `gloss-display-show-entry' opens the buffer in a
40%-width side window on the right, idempotent on repeat calls for the
same term.

All 88 tests pass, including 23 new tests across format-candidate
(full N/B/E), render-entry (N/B/E), pick-definition (mocking
completing-read at the boundary), and a show-entry smoke test that
mocks display-buffer to keep batch runs windowless.
</content>
</entry>
<entry>
<title>test: add gloss-display test suite (red phase)</title>
<updated>2026-04-30T04:59:30+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-04-30T04:59:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/gloss/commit/?id=735ecf082273c0cba2f5c5dd25876e2ccd83b0f7'/>
<id>urn:sha1:735ecf082273c0cba2f5c5dd25876e2ccd83b0f7</id>
<content type='text'>
Four test files covering the gloss-display public API and pure helpers.
All 23 tests fail at this commit because the implementation is still a
stub. Format-candidate gets full N/B/E coverage. Render-entry gets the
pure-helper treatment. Pick-definition mocks completing-read at the
boundary. Show-entry has a single smoke test.
</content>
</entry>
</feed>
