[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 17 Mar 2011 16:20:33 -0400
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
> I often find myself replacing a FROM string with a TO of identical
> length. In such a case I would really appreciate it if case were
> preserved at each character position. E.g. replacing 'ab' by 'xy'
> would give me:
> ab -> xy
> Ab -> Xy
> AB -> XY
> aB -> xY <<<<
If you replace foobar with mrtoto, it would then replace FooBar with
MrtOto whereas you probably wanted MrToto instead.
There's no way for Emacs to know what you really mean here, so the only
solution I can see is to somehow let the user tell Emacs what she wants,
but I'm not sure how best to do that:
- prompt the user when encountering a new mixed-case word.
- let the user specify a case-insensitive replacement of FooBar by MrToto
(currently if you specify such a replacement, Emacs will do it is
a case-sensitive way).
- something else?