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".



_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to