--- Begin Message ---
Subject: |
[PATCH] 24.3.50; subword-capitalize at the end of a buffer jumps to the beginning |
Date: |
Thu, 10 Oct 2013 00:01:22 -0700 |
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.
0001-subword-capitalize-now-fails-gracefully-at-end-of-bu.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#15580: [PATCH] 24.3.50; subword-capitalize at the end of a buffer jumps to the beginning |
Date: |
Tue, 15 Oct 2013 23:03:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> Thanks for looking at this. I tried the fix you made in the repo, and it
> has two issues:
Duh!
> I'm attaching a patch to fix these two issues
Thank you very much. Installed as-is for fear of messing up again,
Stefan
--- End Message ---