<feed xmlns='http://www.w3.org/2005/Atom'>
<title>org-drill/tests/test-org-drill-hide-drawers-missing-end.el, branch main</title>
<subtitle>Spaced-repetition flashcards for Org Mode
</subtitle>
<id>https://git.cjennings.net/org-drill/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/org-drill/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/'/>
<updated>2026-05-05T10:14:09+00:00</updated>
<entry>
<title>fix: hide-drawers ignores drawers with no :END:</title>
<updated>2026-05-05T10:14:09+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-05T10:14:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/commit/?id=aa3d724c6bdd3a16391ad95040184c118386d329'/>
<id>urn:sha1:aa3d724c6bdd3a16391ad95040184c118386d329</id>
<content type='text'>
drawer-end was captured as
  (save-excursion (re-search-forward ':END:' end t) (point))
which always returns a number — (point) is always defined.  The
subsequent (when drawer-end ...) guard was dead, so a malformed
drawer (typo in :END:, mid-edit truncation) ended up with a junk
overlay covering whatever range point happened to land in.

Captured the search result itself and gate on it.  Malformed
drawers are now skipped silently; well-formed drawers still get
their normal overlay.
</content>
</entry>
</feed>
