From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: case change in replacement text with regex-replace Date: Wed, 18 Apr 2007 20:09:36 +0200 Organization: Organization?!? Message-ID: <85bqhlbllr.fsf@lola.goethe.zz> References: <461cc717$0$5074$ba4acef3@news.orange.fr> <4621e0c0$0$5094$ba4acef3@news.orange.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1176921374 23611 80.91.229.12 (18 Apr 2007 18:36:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2007 18:36:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 18 20:36:08 2007 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 1HeF0i-0001Gq-CP for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Apr 2007 20:36:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeF5Z-0004u7-GY for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Apr 2007 14:41:09 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux) Cancel-Lock: sha1:rYdQW82UrU4yswIwKqdbLX7Vo1w= Original-Lines: 28 Original-NNTP-Posting-Date: 18 Apr 2007 20:09:37 CEST Original-NNTP-Posting-Host: b8a61bb5.newsspool3.arcor-online.net Original-X-Trace: DXC=H0bY``; @BYM02Sh8E_NfIAMcF=Q^Z^V3H4Fo<]lROoRAFl8W>\BH3YB1`DVT^Y35 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:42792 Archived-At: Dieter Wilhelm writes: > bojohan+news@dd.chalmers.se (Johan Bockgård) writes: > >> Dieter Wilhelm writes: >> >>> \U I didn't see in the elisp manual >> >> For the record, XEmacs does have \U: > ^^^^^^ > > Thank you, one of the few occasions were I could read that XEmacs has > also it's advantages in comparison to Gnu Emacs. \,(downcase \1) can be used in Emacs 22 in the replacement text. Sure, it is more verbose, but also quite more flexible. The Emacs manual has: For example, to add consecutively numbered strings like `ABC00042' to columns 73 to 80 (unless they are already occupied), you can use M-x replace-regexp ^.\{0,72\}$ \,(format "%-72sABC%05d" \& \#) -- David Kastrup, Kriemhildstr. 15, 44793 Bochum