From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John A Pershing Jr Newsgroups: gmane.emacs.help Subject: Re: Help with upcasing words first char Date: Sat, 22 Aug 2009 17:29:47 -0400 Organization: Optimum Online Message-ID: <82my5rsfjo.fsf@alum.mit.edu> References: <87ab1ru9zt.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250977792 18035 80.91.229.12 (22 Aug 2009 21:49:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2009 21:49:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 22 23:49:45 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MeyT3-0001gj-D9 for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2009 23:49:45 +0200 Original-Received: from localhost ([127.0.0.1]:33686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeyT2-0005sk-Uc for geh-help-gnu-emacs@m.gmane.org; Sat, 22 Aug 2009 17:49:44 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!nx01.iad01.newshosting.com!newshosting.com!69.16.185.51.MISMATCH!tmp-post01.iad!news.highwinds-media.com!news.cv.net!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt) Cancel-Lock: sha1:xbD8cFCeth9rapzABFC44rO8m9A= Original-Lines: 27 Original-NNTP-Posting-Host: 68.199.26.242 Original-X-Complaints-To: abuse@cv.net Original-Xref: news.stanford.edu gnu.emacs.help:172281 X-Mailman-Approved-At: Sat, 22 Aug 2009 17:47:36 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67432 Archived-At: "A.Politz" writes: > I always wished emacs had some kind of interpreted, builtin language > for such cumbersome tasks. Or at least some support for basic keyboard > macros. Well, whay do you do. I assume you are being sarcastic here... If not... Of course, Emacs has a builtin language for such tasks. It also has keyboard macros, which is what I would probably use for this task: C-x ( M-f M-\ M-c C-x ) {Start macro, forward word, delete space, capitalize word, end macro} followed by: C-x e to (re-)execute the macro. You can even save a keyboard macro into a file and reload it later, or edit the saved macro (carefully!). I have a gigantic keyboard macro (for processing a particular LISTSERV digest) which grew from humble origins to its current size. In this case, it's much easier to keep it as a keyboard macro rather than transliterating it into elisp. -jp