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

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

Re: many-word replacement string case


From: Chris Moore
Subject: Re: many-word replacement string case
Date: Thu, 26 Oct 2006 20:23:22 +0200

On Wed, 2006-10-25 at 21:00 +0200, Pierre Albarede wrote:
> Dear Sirs,
> 
> with GNU Emacs 22.0.50.1
> emacs -q
> 
> M-x replace-string RTN realite RTN \index{realite}
> will replace
> Realite
> by
> \Index{Realite}
> instead of expectable
> \index{Realite}.
> 
> At least in TeX mode, this is clearly a bug.

The variables case-replace and case-fold-search have a bearing on this
behaviour.

Using (setq case-replace nil case-fold-search t)
will result in "Realite" => "\index{realite}"
ie. the replacement string is used unchanged.

Using (setq case-fold-search nil)
will result in "Realite" => "Realite"
ie. the string only matches "realite" and not "Realite".





reply via email to

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