Ævar Arnfjörð Bjarmason
<[email protected]> writes:

> Will be way off, because it'll count the (length) of lines like:
>
>     ("pick cb925f0 check message..." "pick 2f811b6 take done length"
> "pick 29332e6 use backup" "" "# Rebase 19e2dd7..29332e6 onto 19e2dd7"
> "#" ...
>
> What it should do instead so we can get the correct count is to only
> count up until the "" (uninclusive) so the above example would return
> 3.
>
> I couldn't find an idiomatic way of doing this in elisp, I could with
> the (loop) macro, but that'd require cl.el.

cl package is still required at compile-time so you can use loop.

-- 
Hannu

Reply via email to