Hi. I'm observing subword-capitalize get confused when called near the end of a buffer. Instead of doing nothing like capitalize-word does, subword-capitalize jumps to around the beginning of the buffer and capitalizes something there. The cause is simple. subword-capitalize does (re-search-forward "[[:alpha:]]" ....) and uses the results of this search even if it failed. The attached patch explicitly checks for search failure and exits the function in that case.