unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: capitalize-word unwilling to capitalize 'god'
Date: Mon, 14 Nov 2005 16:18:53 -0700	[thread overview]
Message-ID: <dlb60v$gi5$1@sea.gmane.org> (raw)
In-Reply-To: <87zmo7p67y.fsf@jidanni.org>

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
characters.

Here's a fix for your .emacs:

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

-- 
Kevin Rodgers

  reply	other threads:[~2005-11-14 23:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-14 16:03 capitalize-word unwilling to capitalize 'god' Dan Jacobson
2005-11-14 23:18 ` Kevin Rodgers [this message]
2005-11-15 18:07 ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dlb60v$gi5$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).