From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: master baf331e 3/3: Rename replace-in-string to string-replace Date: Mon, 28 Sep 2020 14:21:44 +0200 Message-ID: References: <20200926222500.20662.9159@vcs0.savannah.gnu.org> <20200926222503.227F720441@vcs0.savannah.gnu.org> <87h7riw3ti.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 28 14:22:40 2020 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 1kMsAx-0005zw-R4 for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Sep 2020 14:22:39 +0200 Original-Received: from localhost ([::1]:54126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMsAw-0008Rr-To for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Sep 2020 08:22:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMsAA-0007ad-CF for emacs-devel@gnu.org; Mon, 28 Sep 2020 08:21:50 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:54569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMsA8-0003n2-PI for emacs-devel@gnu.org; Mon, 28 Sep 2020 08:21:50 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id s13so874260wmh.4 for ; Mon, 28 Sep 2020 05:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=H0bGRpwsZYTnJwSphPjVUGUlzsGutux8xbpduGKrNIY=; b=b1uw10iSVVWSZpFsKRkBBxQoeRirRzYecyF6E0gL7F0ym752FfisT+VmL5mfreqrSa u9/C3nmy+owwIcG9jIZfoevbRKT5SI5+pOUXKBDYCwz7NXN50dtmaO+hWT36ZJSRi8VR ET+sBirwoZdEUOAFCBi7aN7lnwpDnKS0H/aJ4TOfrgK/uAaWRWC3M4ZYtzL56+JLPAsF VuWyRAx3FZIsAZ/h0Iq0Avy4LzCsi5CEFNCfP7RILwRDsxvK5SNL6tyzVG5lI0edKchu CCBugW6arHQR3nyAC4kvCg09QzMCMZ2ymeJEKrHciR4HCI0rjLQ3AbxzDCz4Sqwg2/GY 0kLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=H0bGRpwsZYTnJwSphPjVUGUlzsGutux8xbpduGKrNIY=; b=DE4iBHCJvC7i8OvS0CbxfYQDmruBHpgLn9+ncclvxkLs+YmdWTkekKbuOj4RUxo/pu lYr5EV2bISNIokjDn03xmG+Xsh9PdBHOrvh/2AbUKGDdDeBJuJ/rh+YHEJWPWa8r49LP PP9FGcUU4z4jTtiVAAnIjd8HRFMnxyOcFcTWlSEiBYYOYYz+lp5OxeNwSB1HP4Wluxp7 Ghwtu1YLI+Gnw3XX5UrAhjHVqmw4eMGZC4NICzu1YMi1rFydxW8cMTV041E5Qz95oGmb VXJIK7ePoL5QSdbSGOQOeRjLF/zeVMfD2ufl5qeSPK/rQxzo8TBzFjC6l85Pub6X/R4i fkyA== X-Gm-Message-State: AOAM5329OtH2TsVLUQc710hMwkRVsrSP1N5EaKZ54xhxQznka39fq7Ko paLUarxUKu1qZ1m3lMwpUUcv6T9Sa2U= X-Google-Smtp-Source: ABdhPJytCab478etErEJpZT6jEAD/aDFpIel68N1QWIne0ga/XUljVGVpwYogUKBTzyzcbkamVm5PQ== X-Received: by 2002:a1c:9885:: with SMTP id a127mr1407482wme.8.1601295706018; Mon, 28 Sep 2020 05:21:46 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:5e8:c9a6:d426:17be]) by smtp.gmail.com with ESMTPSA id h186sm1111335wmf.24.2020.09.28.05.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 05:21:45 -0700 (PDT) Gmane-Reply-To-List: yes In-Reply-To: <87h7riw3ti.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 28 Sep 2020 13:14:49 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=rpluim@gmail.com; helo=mail-wm1-x330.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:256590 Archived-At: >>>>> On Mon, 28 Sep 2020 13:14:49 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> Do we need a (defalias 'string-replace-regexp >> 'replace-regexp-in-string)? Lars> I'm not very enthusiastic about adding noun-verb aliases for the Lars> verb-noun functions we already have. It makes reading code more Lars> confusing when we have several names for the same thing. I agree, but in this case anyone who finds 'string-replace' is going to have a harder time finding 'replace-regexp-in-string'. The two functions are twins, they should be easy to find from one another. Lars> Discoverability is an issue, though, and I'm working on that. We can always stick cross-references in the respective docstring, but people are still going to wonder about the irregular naming. Robert --