This changeset gracefully handles optional START and END parameters in ARTBOLLOCKS-COUNT-WORDS and ARTBOLLOCKS-COUNT-SENTENCES. When either START or END are omitted, these functions will use POINT-MIN or POINT-MAX, respectively. I've also replaced several calls to (INTERACTIVE "r") to allow the user to invoke the corresponding functions without specifying a region. If a region isn't specified, the entire buffer, subject to narrowing, is used.
defun. Otherwise it didn't work with the region.
Otherwise we get wrong results.
This function is no longer part of artbollocks-mode but the README and the usage documentation in the source code both show it as the preferred way to enable artbollocks-mode as a hook for other modes. Attempting to use turn-on-artbollocks-mode can cause some obscure errors, such as breaking log-edit-show-diff. The correct way to enable artbollocks-mode is to simply setup hooks to call that function directly, and this patch changes the documentation to reflect that. Signed-off-by: Eric James Michael Ritz <firstname.lastname@example.org>