> We already solved this kind of problem once for capitalize-region: > > if ((int) flag >= (int) CASE_CAPITALIZE) > inword = SYNTAX (c) == Sword && (inword || !SYNTAX_PREFIX (c)); > > Since ' in text-mode has syntax "w p", it means that a ' after a word char > is considered by capitalize-region as being a word-char, whereas a ' after > a non-word char is considered as a non-word char. This way > capitalize-region applied to > > 'can't' > gives > 'Can't' > > I guess the same idea should be applied to word movement.
Interesting. It might be a bit harder in this case though, because you can have an apostrophe at the end of a word, e.g, "two mens' sons", meaning the sons of two men. So you would also have to check for an apostrophe at the start of the word. -- Nick http://www.inet.net.nz/~nickrob _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
