Am 28.08.2014 um 17:30 schrieb Stephen Leake <[email protected]>:

> Did you try just using the existing case exceptions mechanism? That
> should work.

Drat. I had missed (or forgotton) the fragments of words supported
by the machanism! Yes, that'll do, mostly; any collection of title
case words in an additional file of partial exceptions will be a
convenient solution.

Why mostly? I had thought that the position of those stop
words in an identifier would be of some importance:

  `On_a_String',  but  `A_House'  and  `The_Letter_A'.

And, of course:

  `A'  vs `a'

etc. This is why I had a test, (> (point) start), in ada-mixed case.
If another list of exceptions won't do, the end position could
be tested similarly, as the existing algorithm already marks
either the next '_' or the end of a word.  That is, if title
case becomes the style of a significant minority at all.

(minor typo: "fragemnt" in the manual's "Automatic casing"
section.)


_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to