all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roland Winkler <roland.winkler@physik.uni-erlangen.de>
Cc: Richard Stallman <rms@gnu.org>
Subject: Re: case conversion by replace-match
Date: 17 May 2003 22:09:22 +0200	[thread overview]
Message-ID: <m3k7cpxrm5.fsf@tfkp07.physik.uni-erlangen.de> (raw)
In-Reply-To: mailman.6339.1053179576.21513.bug-gnu-emacs@gnu.org

Richard Stallman <rms@gnu.org> 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

  parent reply	other threads:[~2003-05-17 20:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-16 14:16 case conversion by replace-match Roland Winkler
2003-05-16 19:47 ` Stefan Monnier
2003-05-16 21:07 ` Andreas Schwab
     [not found] ` <mailman.6326.1053119374.21513.bug-gnu-emacs@gnu.org>
2003-05-16 21:32   ` Kevin Rodgers
2003-05-16 21:51     ` Andreas Schwab
2003-05-17 13:50 ` Richard Stallman
     [not found] ` <mailman.6339.1053179576.21513.bug-gnu-emacs@gnu.org>
2003-05-17 20:09   ` Roland Winkler [this message]
2003-05-19 20:24     ` Kevin Rodgers
2003-05-21  1:55       ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k7cpxrm5.fsf@tfkp07.physik.uni-erlangen.de \
    --to=roland.winkler@physik.uni-erlangen.de \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.