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

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

Re: emacs capitalizing every word in replacement how to prevent


From: John Covici
Subject: Re: emacs capitalizing every word in replacement how to prevent
Date: Thu, 24 Nov 2022 08:42:15 -0500
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Where in the customization do I go to find this one?

On Thu, 24 Nov 2022 07:53:52 -0500,
<tomas@tuxteam.de> wrote:
> 
> [1  <text/plain; utf-8 (quoted-printable)>]
> On Thu, Nov 24, 2022 at 07:25:56AM -0500, John Covici wrote:
> > Hi.  I have a shell script like this
> > JawMuscles1
> > followed by other similar names.
> > 
> > I wanted to replace each item in the file like this:
> > 
> > Replace regexp (default ^.*$ → cd jawstemp; unzip ../\&.zip;mkdir
> > ../\&;mv * ..\&;cd ..
> > 
> > but Emacs capitalized every word in the replaced lines, including all
> > the commands -- it replaced  unzip with Unzip etc.
> > 
> > I have never seen this before.  The file is type shellscript.
> > 
> > How to prevent this?
> 
> Try to set the variable `case-replace' to nil. Cf the section
> "Replace Command and Lax Matches" in the Emacs manual for a
> more detailed story.
> 
> You can set this variable's value via the Customize interface.
> 
> Cheers
> -- 
> t
> [2 signature.asc <application/pgp-signature (7bit)>]
> No public key for 05C82CF57AD1DA46 created at 2022-11-24T07:53:46-0500 using 
> DSA

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com



reply via email to

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