From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Add some aliases for re-related functions Date: Sat, 02 May 2020 21:39:19 +0300 Message-ID: <83lfmaqizs.fsf@gnu.org> References: <7976B8C1-AFC7-4662-B750-6492EB70C0D5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="33162"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 20:40:11 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 1jUx3a-0008VL-5j for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 20:40:10 +0200 Original-Received: from localhost ([::1]:47778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUx3Z-0005OS-6u for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 14:40:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUx2u-0003qs-AC for emacs-devel@gnu.org; Sat, 02 May 2020 14:39:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36065) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUx2t-0000RO-Vl; Sat, 02 May 2020 14:39:28 -0400 Original-Received: from [176.228.60.248] (port=4333 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jUx2t-0003HV-A8; Sat, 02 May 2020 14:39:27 -0400 In-Reply-To: <7976B8C1-AFC7-4662-B750-6492EB70C0D5@gmail.com> (message from Yuan Fu on Sat, 2 May 2020 14:28:08 -0400) 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:248534 Archived-At: > From: Yuan Fu > Date: Sat, 2 May 2020 14:28:08 -0400 > > While debating whether it’s effective to add prefixes to increase discoverability, lets start with incremental and uncontroversial changes. Let’s start from re-related functions since it seems that many people agree on this. Here is a list of functions that I think could benefit from an alias. > > replace-regexp-in-string re-replace-in-string > replace-match re-replace-match > string-match re-search-in-string > string-match-p re-match-in-string-p > match-string re-matched-string > match-string-no-properties re-matched-string-no-properties > match-beginning re-match-beginning > match-end re-match-end > > looking-at re-match-after-point > looking-back re-match-before-point > looking-at-p re-match-after-point-p > posix-search-forward re-posix-search-forward > posix-search-backward re-posix-search-backward > posix-looking-at re-posix-looking-at > posix-search-in-string re-posix-search-in-string Is "re-" really a useful prefix? What newbie will type "re-" when they need regexp-related functions? Where would they get the idea that "re" stands for "regular expression"?