all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Covici <covici@ccs.covici.com>
To: covici@ccs.covici.com
Cc: <tomas@tuxteam.de>, help-gnu-emacs@gnu.org
Subject: Re: emacs capitalizing every word in replacement  how to prevent
Date: Thu, 24 Nov 2022 09:00:01 -0500	[thread overview]
Message-ID: <m3zgcgfo66.wl-covici@ccs.covici.com> (raw)
In-Reply-To: <m335a8h3k8.wl-covici@ccs.covici.com>

I  looked up case-replace and it was concerned with preserving case in
replacements.  In my example case was actually changed in the
replacement string, so how would this apply?

On Thu, 24 Nov 2022 08:42:15 -0500,
John Covici wrote:
> 
> 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
> 

-- 
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	other threads:[~2022-11-24 14:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-24 12:25 emacs capitalizing every word in replacement how to prevent John Covici
2022-11-24 12:53 ` tomas
2022-11-24 13:42   ` John Covici
2022-11-24 14:00     ` John Covici [this message]
2022-11-24 14:12       ` tomas
2022-11-24 14:18         ` John Covici
2022-11-24 14:02     ` tomas

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=m3zgcgfo66.wl-covici@ccs.covici.com \
    --to=covici@ccs.covici.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tomas@tuxteam.de \
    /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.