From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: Re: case conversion by replace-match Date: 17 May 2003 22:09:22 +0200 Organization: FAU Erlangen-Nuernberg 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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053202550 26813 80.91.224.249 (17 May 2003 20:15:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 17 May 2003 20:15:50 +0000 (UTC) Cc: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 17 22:15:48 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 19H85s-0006yL-00 for ; Sat, 17 May 2003 22:15:48 +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 19H87G-00009p-01 for gnu-bug-gnu-emacs@m.gmane.org; Sat, 17 May 2003 16:17:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19H86f-0008BN-00 for bug-gnu-emacs@prep.ai.mit.edu; Sat, 17 May 2003 16:16:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19H86X-0007iX-00 for bug-gnu-emacs@prep.ai.mit.edu; Sat, 17 May 2003 16:16:34 -0400 Original-Received: from horus.isnic.is ([193.4.58.12]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19H86L-0007FP-00 for bug-gnu-emacs@prep.ai.mit.edu; Sat, 17 May 2003 16:16:18 -0400 Original-Received: from max6.rrze.uni-erlangen.de (max6.rrze.uni-erlangen.de [131.188.3.214]) by horus.isnic.is (8.12.9/8.12.9/isnic) with ESMTP id h4HKGDgO038222 for ; Sat, 17 May 2003 20:16:14 GMT (envelope-from news@rrze.uni-erlangen.de) Original-Received: from rznews2.rrze.uni-erlangen.de by max6.rrze.uni-erlangen.de with ESMTP for gnu-emacs-bug@moderators.isc.org; Sat, 17 May 2003 22:16:10 +0200 Original-Received: from local by rznews2.rrze.uni-erlangen.de (8.11.7+Sun/cl-RRZE) id h4HK9N521648; Sat, 17 May 2003 22:09:23 +0200 (MET DST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 32 Original-NNTP-Posting-Host: tfkp07.physik.uni-erlangen.de Original-X-Trace: rznews2.rrze.uni-erlangen.de 1053202163 21646 131.188.164.207 (17 May 2003 20:09:23 GMT) Original-X-Complaints-To: news@uni-erlangen.de Original-NNTP-Posting-Date: 17 May 2003 20:09:23 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 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:5099 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5099 Richard Stallman writes: > However, when foo is run in a buffer containing the string "=FC", > this string will be replaced with an uppercase umlaut-U. > > This is a feature: when replacing an uppercase word, replace-match > converts the replacement to uppercase. If you don't want that feature, > pass t for the second argument to replace-match. Thanks a lot. Passing t for the second argument to replace-match gives me what I want. I was just surprised that "=E4" and "=F6" gave me lowercase umlaut-a and umlaut-o as desired. But replacing "=FC" with umlaut-u did not work. > PS In mime-encoded mails "=FC" represents a lowercase umlaut-u. > > replace-match only cares that the letters are upper case. > It does not know you intend them to stand for something else. But then I would expect that "=E4" (umlaut-a) and "=F6" (umlaut-o) should give rise to a case conversion, too. Or am I once again missing something? > By the way, perhaps you want to use mail-unquote-printable-region > to do this decoding. The code is supposed to handle various conversions for umlauts: "7 bit", iso-latin, TeX, german LaTeX, html, mime, etc. Roland