From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Curious: Why is there no binding for replace-string "out of the box"? Date: Thu, 07 Mar 2024 08:38:32 +0200 Message-ID: <86r0gmk0lz.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21797"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 07 07:39:28 2024 Return-path: Envelope-to: ged-emacs-devel@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 1ri7Pc-0005Sc-AR for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Mar 2024 07:39:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ri7On-00009K-6O; Thu, 07 Mar 2024 01:38:40 -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 1ri7Ol-000092-1F for emacs-devel@gnu.org; Thu, 07 Mar 2024 01:38:35 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ri7Ok-0002N4-LJ; Thu, 07 Mar 2024 01:38:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NPtN9dM8+vVbruJLj/QJuHNm4PL48ZEIxqKXYyoFDrM=; b=Wyi8Qntuvdxz aaPdLoIIA6i7yr1WW9/RyI134okg/yOlHMgvnuLNQkXeM/2hURXifpnh8UmKEM/Z+WVGD92mT/po6 bCpvdYhNMiGfxGv6aOYtSOCjF0GU2d5AkRRJy6JRJ8AAjsnFkRR2WTWEJJHKIr9LaSkqnQ3/gXO9u FbJ/SKsleYhSg494DL74dfNh2WXSSDBB1za5GvhyUGxvLbvZLv91wX3917IDUcCZ8tbPNe24y++ho qY/FJAYwrWVx6tTkDOs22sopRL3igHHjSrIbQxMhzum18SmAL4Brq/f9VqGH0Eh6I3J9FGQnsUwxk Ekm6oh7sYt97PEdRBv+49w==; In-Reply-To: (raman@google.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316874 Archived-At: > From: "T.V Raman" > Date: Wed, 06 Mar 2024 13:12:49 -0800 > > As someone who has now used emacs for approx 35 years, I've always > assumed that M-r was bound to replace-string -- that's a binding I've > always had:-) I just realized that out-of-the-box, emacs -q binds > replace-regex to M-% but does not bind replace-string. So just curious: > > 1. Is the above an oversight or intentional? > 2. Should we perhaps pick a binding for replace-string -- note: I dont > care what we pick, but not having a key for it feels strange. We bind M-% to query-replace, which is a superset of replace-string. Why would you want to use replace-string instead? what can it do that query-replace cannot?