diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-11 14:58:30 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-11 14:58:30 -0500 |
| commit | e52668985817b92f296606707694729b866e8364 (patch) | |
| tree | 6b4214ff67acee159ac4e78a3a8ebd2f32dcf55a /modules/custom-whitespace.el | |
| parent | 734172047b05a7dd4d75c86f8aae66c5ae807de0 (diff) | |
| download | dotemacs-e52668985817b92f296606707694729b866e8364.tar.gz dotemacs-e52668985817b92f296606707694729b866e8364.zip | |
fix(custom-case): align title-case with its docstring and standard rules
cj/title-case-region contradicted its own docstring in three ways. It lowercased "is" despite the docstring calling linking verbs major words; it never restarted capitalization after a sentence-ending period; and it had no rule to capitalize the last word. I made the code match the standard: dropped "is" from the minor-word skip list, added the period to the reset characters (a period plus a blank restarts, so "3.14" and "foo.bar" are still left alone), and always capitalize the last word by locating its start once. Updated the four characterization tests that asserted the old behavior and added tests for the last-word and period-restart rules.
Diffstat (limited to 'modules/custom-whitespace.el')
0 files changed, 0 insertions, 0 deletions
