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 08:42:15 -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="30002"; 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: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 24 14:42:57 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 1oyCVF-0007ax-2A for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Nov 2022 14:42:57 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyCUn-0006Co-L6; Thu, 24 Nov 2022 08:42:29 -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 1oyCUj-0006Ca-RA for help-gnu-emacs@gnu.org; Thu, 24 Nov 2022 08:42:26 -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 1oyCUi-0006tF-8D for help-gnu-emacs@gnu.org; Thu, 24 Nov 2022 08:42:25 -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 2AODj6YH2219617 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 24 Nov 2022 08:45:09 -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 2AODgJ7A1526857 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 24 Nov 2022 08:42:19 -0500 Original-Received: (from covici@localhost) by ccs.covici.com (8.17.1.9/8.17.1/Submit) id 2AODgFwq1526793; Thu, 24 Nov 2022 08:42:15 -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:141142 Archived-At: 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