From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Covici Newsgroups: gmane.emacs.help Subject: Re: emacs capitalizing every word in replacement how to prevent Date: Thu, 24 Nov 2022 09:00:01 -0500 Organization: Covici Computer Systems Message-ID: References: Reply-To: covici@ccs.covici.com Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-2022-JP Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7070"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: , help-gnu-emacs@gnu.org To: covici@ccs.covici.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 24 15:01:05 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oyCmk-0001af-Ng for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Nov 2022 15:01:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyCmE-0003nl-Se; Thu, 24 Nov 2022 09:00:36 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyCls-0003mo-9n for help-gnu-emacs@gnu.org; Thu, 24 Nov 2022 09:00:08 -0500 Original-Received: from debian-2.covici.com ([166.84.7.93] helo=covici.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyClq-0006bR-HQ for help-gnu-emacs@gnu.org; Thu, 24 Nov 2022 09:00:08 -0500 Original-Received: from ccs.covici.com (ccs.covici.com [70.109.51.194]) (authenticated bits=0) by covici.com (8.15.2/8.15.2/Debian-22) with ESMTPSA id 2AOE2nO42219723 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 24 Nov 2022 09:02:51 -0500 Original-Received: from ccs.covici.com (localhost [127.0.0.1]) by ccs.covici.com (8.17.1.9/8.17.1) with ESMTPS id 2AOE026U1542112 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 24 Nov 2022 09:00:02 -0500 Original-Received: (from covici@localhost) by ccs.covici.com (8.17.1.9/8.17.1/Submit) id 2AOE01Bd1542111; Thu, 24 Nov 2022 09:00:01 -0500 In-Reply-To: Received-SPF: none client-ip=166.84.7.93; envelope-from=covici@ccs.covici.com; helo=covici.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141143 Archived-At: 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, > wrote: > > > > [1 ] > > 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 ] > > 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