From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Add some aliases for re-related functions Date: Sat, 2 May 2020 14:28:08 -0400 Message-ID: <7976B8C1-AFC7-4662-B750-6492EB70C0D5@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112830"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 20:28:47 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 1jUwsZ-000TEq-OF for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 20:28:47 +0200 Original-Received: from localhost ([::1]:56740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUwsY-0006HY-Qr for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 14:28:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUwrz-0005fa-Od for emacs-devel@gnu.org; Sat, 02 May 2020 14:28:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUwrz-0007KL-82 for emacs-devel@gnu.org; Sat, 02 May 2020 14:28:11 -0400 Original-Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:42728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUwry-0007Hh-R6 for emacs-devel@gnu.org; Sat, 02 May 2020 14:28:10 -0400 Original-Received: by mail-qk1-x72f.google.com with SMTP id b188so12456404qkd.9 for ; Sat, 02 May 2020 11:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=ZZssydDy7KN7Xp6IbyONwbBR/gwcvM2fpjZjUWcZC3o=; b=mmFw1g8iGWuq9AdbefhN6QTd63NqP2S+wIwsfreRRJ8AI0uLiqsvY+wGaoE8JHV8O3 2/JwZ95y07BTBWEqDM2ELMpja8zZxbQOxwCwF4pT+CzDJw6YpO8+4PoDxpuMHs72vpKO TgxKZHCfpRICkNUeNLKtWoxQbfpr6REs+qL5xNk8ib93xw6cBhZKHSMQCqbVtxddWWue grz4aAM4fYUCBoEdixV4rCAjI08gJ6bQcVepuye7/D2jdMWnjIZnMMwxJYdkdHGzbw3k 3car4Icl3xv6ZrBOJT0APB/3ebx3JJe/wniyQgFOiw1BSb2BHZqg9B+fuP2iqk0T17Ts AlMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=ZZssydDy7KN7Xp6IbyONwbBR/gwcvM2fpjZjUWcZC3o=; b=hcBAxWVjcqUiOf/xrjc1zU/z6QYXX56gnsZBAiKW66TdmXnumJyltM6zgelD5Np0D/ oFnw8wmHBPTnLE9MvG3ZjPmciFGBqIsZIkG+vjuFcooNyVjdBBM2oOTI9EhqpzSvT0ak FgKOqNyqGKMiv7P5UCmWJbPg9QB065AhJNICNX0eQhbOX8hCTVbd1o1gM0mI5RICuwEL du3irgu7KV/eaVwVVCKPLrigq94uNr5wy5AM03A5g4xd/4Kzvksmf4WFHKejChdmFgx7 vH1IG7oObwHphZKxpVpKrPadHefW7qGi2A96R8Jn0ZOO5PC9sc0wET1f6j47MRYlFXNs Mskg== X-Gm-Message-State: AGi0PuZgmDTa4+bHk550A88Lhno425WSfH7tGg3X47pdT+CBvkWj9tas gcwElf8FcJElOIrupeOSM8vfKUk6ZPdAZA== X-Google-Smtp-Source: APiQypK5wnVmyM/qDm/b6abjv3uU7FVmW2kH3WipEdJhVTryARAtEU7Uf+f+qSZ6tB61f9tesaDFeg== X-Received: by 2002:a05:620a:693:: with SMTP id f19mr2002406qkh.299.1588444089636; Sat, 02 May 2020 11:28:09 -0700 (PDT) Original-Received: from [192.168.1.5] (c-174-60-229-153.hsd1.pa.comcast.net. [174.60.229.153]) by smtp.gmail.com with ESMTPSA id b3sm5690457qtp.12.2020.05.02.11.28.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 May 2020 11:28:09 -0700 (PDT) X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=casouri@gmail.com; helo=mail-qk1-x72f.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::72f 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:248524 Archived-At: While debating whether it=E2=80=99s effective to add prefixes to = increase discoverability, lets start with incremental and = uncontroversial changes. Let=E2=80=99s 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.=20 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 Let=E2=80=99s do it like this: if you don=E2=80=99t like adding alias to = a certain function (strongly), call it out and we will remove it from = the list for now. Then we should have a small list that everybody agrees = upon (or at least no one absolutely hates).=20 And please do not drift the topic away in this thread, which hinders the = original purpose of the thread. Let=E2=80=99s focus on these functions = and only these functions. Yuan=