[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: capitalize-word unwilling to capitalize 'god'

From: Kevin Rodgers
Subject: Re: capitalize-word unwilling to capitalize 'god'
Date: Mon, 14 Nov 2005 16:18:53 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Dan Jacobson wrote:
> What's the deal? In Text mode ($ emacs file.txt), put the cursor upon
> the first apostrophe of
> 'god'
> and hit ESC C, and like, no bananas, man.
> However, ESC L, ESC U do their thing normally.
> If I want 'God', then I must put the cursor on the g, else no
> potatoes, whereas the other two work fine from even before the first
> apostrophe. Indeed, ESC C acts like ESC L if not done from the g.
> emacs-version "21.4.1"

This is because in Text mode apostrophe has word syntax, counter to
one's intuition that it is a punctuation character.  Only
capitalize-word is affected because it changes the first character of
the following word, whereas upcase-word and downcase-word change all the

Here's a fix for your .emacs:

(modify-syntax-entry ?' "." text-mode-syntax-table)

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]