From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "D. Goel" Newsgroups: gmane.emacs.bugs Subject: capitalize-word capitalizes acronyms.. Date: 09 May 2002 15:05:52 -0400 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020971196 12727 127.0.0.1 (9 May 2002 19:06:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 May 2002 19:06:36 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 175tFM-0003JA-00 for ; Thu, 09 May 2002 21:06:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 175tFV-0005dE-00; Thu, 09 May 2002 15:06:45 -0400 Original-Received: from ipr-mail.umd.edu ([128.8.86.132]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 175tEm-0005a7-00 for ; Thu, 09 May 2002 15:06:01 -0400 Original-Received: from fosters.umd.edu (root@fosters.umd.edu [129.2.106.74]) by ipr-mail.umd.edu (8.9.3/8.9.3) with ESMTP id PAA06076 for ; Thu, 9 May 2002 15:05:56 -0400 (EDT) Original-Received: from fosters.umd.edu (sendmail@localhost [127.0.0.1]) by fosters.umd.edu (8.9.3/8.9.3) with SMTP id PAA09812 for ; Thu, 9 May 2002 15:05:56 -0400 (EDT) Original-Received: (from deego@localhost) by fosters.umd.edu (8.9.3/8.9.3) id PAA09808; Thu, 9 May 2002 15:05:53 -0400 (EDT) X-Authentication-Warning: fosters.umd.edu: deego set sender to deego@glue.umd.edu using -f Original-To: bug-gnu-emacs@gnu.org Original-Lines: 26 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1260 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1260 Dear g.e.bug folks.. consider what happens when you capitalize a region: FSF gets changed to Fsf in the region. There are (3 differnet) utilities out there that capitalize each sentence-beginning for you.. some of them write their own implementation of capitalize-word for this very reason. So i figured, perhaps the best place to make the change is in GNU emacs itself.. IMHO, there could be a variable, say, capitalize-acronyms-p. If this variable is non-nil, then capitalize-word (and capitalize-region) should capitalize GNU to GNU, not Gnu. These are built-in functions, and If i knew enough C and loved it tenth as much as elisp, i would try to submit a patch myself :) (in fact, if you so like, more generally, there could be a general regexp that skips capitalization.. for instance, as in Kevin Rodger's auto-capitalize.el --> http://groups.google.com/groups?q=capitalize+auto+group:gnu.emacs.sources&hl=en&selm=3C45E780.89BDDF06%40ihs.com&rnum=2 ) (PS: i use emacs 21.1)