<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-dirvish-config-dired-line-directory.el, branch load-graph-classify-start</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=load-graph-classify-start</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=load-graph-classify-start'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-05-10T18:44:40+00:00</updated>
<entry>
<title>refactor(dirvish): extract cj/--dired-line-is-directory-p</title>
<updated>2026-05-10T18:44:40+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-10T18:44:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=2b19eb175d0664908f76bf7cc8dcc1eb5c140ce1'/>
<id>urn:sha1:2b19eb175d0664908f76bf7cc8dcc1eb5c140ce1</id>
<content type='text'>
`cj/dired-mark-all-visible-files' classified the current line as a directory via `(looking-at "^. d")' inline.  Lift the classification into `cj/--dired-line-is-directory-p', a string predicate that takes a line and returns non-nil when it's a directory listing.  The wrapper still walks the dired buffer line by line and calls `dired-mark' -- that iteration is dired-coupled and stays untested -- but the format-aware predicate is now isolated and verified.

Six Normal/Boundary tests cover unmarked directories, marked directories (`*' prefix), regular files (`-' instead of `d'), symlinks (`l'), empty lines, and dired header lines (`  /path:' and `  total N').
</content>
</entry>
</feed>
