Hi Eric, Eric Abrahamsen <e...@ericabrahamsen.net> writes:
> Thanks, but this introduces new problems for me -- the regexp matches on > every line, so it trucks along past both drawers and regular text to the > next heading, and stops there. I think the test for the drawer end is > necessary, which probably means the regexp grouping is also necessary… This should be fixed now. Thanks for the careful testing! > PS My own use case (another version of org word count) didn't rely on a > return value from the function, but it strikes me that, all else being > equal, a return value of point could be more useful than nothing… Yes, I left the (point) call at the end. Best, -- Bastien