From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: Re: case conversion by replace-match Date: Fri, 16 May 2003 23:51:36 +0200 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <16068.62114.573866.744811@tfkp07.physik.uni-erlangen.de> <3EC55900.10008@yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1053121996 14034 80.91.224.249 (16 May 2003 21:53:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 May 2003 21:53:16 +0000 (UTC) Cc: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 16 23:53:12 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Gn74-0003XG-00 for ; Fri, 16 May 2003 23:51:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Gn8c-0001Dd-00 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 16 May 2003 17:53:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19Gn8A-0000rj-00 for bug-gnu-emacs@prep.ai.mit.edu; Fri, 16 May 2003 17:52:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Gn7L-00007b-00 for bug-gnu-emacs@prep.ai.mit.edu; Fri, 16 May 2003 17:51:57 -0400 Original-Received: from chi6-2.relay.mail.uu.net ([199.171.54.99]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Gn7C-0008D1-00 for bug-gnu-emacs@prep.ai.mit.edu; Fri, 16 May 2003 17:51:46 -0400 Original-Received: from Cantor.suse.de by chi6sosrv11.alter.net with ESMTP (peer crosschecked as: ns.suse.de [213.95.15.193]) id QQoozf11798 for ; Fri, 16 May 2003 21:51:44 GMT Original-Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 2AA6814A52; Fri, 16 May 2003 23:51:38 +0200 (MEST) Original-To: Kevin Rodgers X-Yow: FUN is never having to say you're SUSHI!! In-Reply-To: <3EC55900.10008@yahoo.com> (Kevin Rodgers's message of "Fri, 16 May 2003 15:32:48 -0600") User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3.50 (gnu/linux) X-MIME-Autoconverted: from 8bit to quoted-printable by chi6sosrv11.alter.net id QQoozf11798 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5091 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5091 Kevin Rodgers writes: |> Andreas Schwab wrote: |>=20 |> > Roland Winkler writes: |> > |> Start a fresh emacs --no-init-file |> > |> |> define the following function |> > |> |> (defun foo () |> > |> (interactive) |> > |> (let (case-fold-search) |> > |> (while (search-forward "=3DFC" nil t) |> > |> (replace-match (string 252) nil t)))) |> > |> |> `(string 252)' gives a lowercase umlaut-u (iso-latin-1) |> > |> |> However, when foo is run in a buffer containing the string "=3D= FC", |> > |> this string will be replaced with an uppercase umlaut-U. |> > Exactly as documented. |>=20 |>=20 |> That's what I thought at first. Then I thought the "=3D" obviously me= ans that |> not all the characters in the replacement text are capital letters, so= NEXTEXT Since "=3D" is not a letter, it is ignored. Otherwise sentence marks wou= ld make the function of case-replace useless. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N=FCrnberg Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."