bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: case conversion by replace-match


From: Roland Winkler
Subject: Re: case conversion by replace-match
Date: 17 May 2003 22:09:22 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Richard Stallman <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]