From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: (newbie) search & =?utf-8?Q?replace_?= =?utf-8?B?KOKAlG1hdGNo?= case) all at once without confirmation automation Date: Wed, 2 Nov 2022 18:35:38 +0100 Message-ID: References: <4e26d2c27ced788d6d210ea33df88b876fc12908@disroot.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7jmrhWGgNuKiR6IC" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26970"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 02 18:36:08 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 1oqHep-0006ma-Ee for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Nov 2022 18:36:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqHeW-0006Zo-8j; Wed, 02 Nov 2022 13:35:48 -0400 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 1oqHeU-0006ZS-FP for help-gnu-emacs@gnu.org; Wed, 02 Nov 2022 13:35:46 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqHeS-00032r-II for help-gnu-emacs@gnu.org; Wed, 02 Nov 2022 13:35:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=AzPMh9vCE1LQd5Wq33VW0WeDlIetTJCchcF6Mlwa7B8=; b=Rt2mKKaekGSVVGcWq+FV9sfuhs Ivi2qu6K9fuTsmmf4gVo9LK5AUxkYX/mxXKEJblcKRhD12N95VIDkQ1b8Giy3yBkbR0x+HW2SbcI+ AaYSK8IXpGIB1mEymJfNa0fRtXswSEY5FGTjY3S5+nGcaYrk5CAIwAwxESBHRRDmwOmSLD828iZ34 v/mLFiJQM9KY0c9bVfdfLRGmdM3vtlqIJ7Ma+KQsOqp+qQyK3xbw/KEvwXuvS+PhEjh3ZQs/GgIt4 ABc0o8OoLVWYWiBf+ZFULLrBPndw+5qp2ParkVTlgpeqhJLaI6jz3Gd/Yht7PXgFv7kzKIPZ5i+SL SpFKODww==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1oqHeM-0002Vm-Vq for help-gnu-emacs@gnu.org; Wed, 02 Nov 2022 18:35:39 +0100 Content-Disposition: inline In-Reply-To: <4e26d2c27ced788d6d210ea33df88b876fc12908@disroot.org> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-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: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140580 Archived-At: --7jmrhWGgNuKiR6IC Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 02, 2022 at 12:26:20PM +0000, jindam, vani wrote: > hello emacs users, >=20 > after trying several gui text editors, i=20 > hesistantly installed & familiarising emacs. > so far, good. i have decided to use as default=20 > text editor. >=20 > my search contains characters such as { or - or =3D=20 > and alphabets. in other cli/gui editors, i choose=20 > "match case" and "replace all". > for example: "{{cite", "agree=3Dyes" By default, search is case insensitive (unless your search string has mixed case). To change that, you change the value of the variable `case-fold-search' (try: M-x customize-variable, then `case-fold-search': you get a buffer with a button where you can switch it on or off). There are multiple other ways to achieve that, of course. > straight to point: > * where can i find examples for "search & replace=20 > (=E2=80=94match case) all at once without confirmation"? > * is it possible to use more than one for=20 > search & replace? i mean, i want to replace=20 > "{{cite", "agree=3Dyes" at once? > * if i cant use more than one, how do i automate? Once you get your search-and-replace running, it will stop at the first match. There you can type 'y' or just SPACE to effect the replacement, 'n' to skip to the next match. If you want to do "all the rest", you just type '!'. There is a little message at the bottom of your edit window which tells you that (and the other options you have). That said, I'd recommend that you walk the extra mile and learn "incremental search". For one you get immediate feedback while you are entering your search string; then, you can pick up parts of your buffer text to complete your search string. You can change case sensitivity on the fly, change between regular expression and literal string on the fly, too, and lastly, upgrade your search to a search-and-replace. Sounds complicated, but you don't have to learn everything at once. It's woth it :) Cheers --=20 t --7jmrhWGgNuKiR6IC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCY2KqZAAKCRAFyCz1etHa RrlAAJ9d84tCjkj0tTsvaEW27mKwkDV1gwCfcv9Cziu7+vDNRnOhPz5BBI/pjvs= =2xRg -----END PGP SIGNATURE----- --7jmrhWGgNuKiR6IC--