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: Re: Imports / inclusion of s.el into Emacs Date: Fri, 1 May 2020 19:00:24 -0400 Message-ID: <93FA1F56-A056-4E17-A468-17829D638FF5@gmail.com> References: <266155d4-f9c0-8ed3-8df5-32feea171076@yandex.ru> <542564DC-6DD0-41E5-A9CC-365673D68BE0@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="80514"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philippe Vaucher , Emacs developers , Stefan Monnier , =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 01:01:13 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 1jUeef-000Ksl-1b for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 01:01:13 +0200 Original-Received: from localhost ([::1]:57952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUeee-00065W-4N for ged-emacs-devel@m.gmane-mx.org; Fri, 01 May 2020 19:01:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUedx-0005e5-JY for emacs-devel@gnu.org; Fri, 01 May 2020 19:00:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUedw-0005Z2-FP for emacs-devel@gnu.org; Fri, 01 May 2020 19:00:29 -0400 Original-Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:46038) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUedw-0005XF-25 for emacs-devel@gnu.org; Fri, 01 May 2020 19:00:28 -0400 Original-Received: by mail-qt1-x82a.google.com with SMTP id 71so9170117qtc.12 for ; Fri, 01 May 2020 16:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DnXTUDKPshyW0vvJloxGMP4WvfSInvzZ1Z9+AH3EI/o=; b=jA7Dk/w7m0k6E6z/A924w4G1h2Bo9GuHy9drhNIkBTU/n81JPoPmPdSLYpcUm84ks9 puyX+oiWuiJoSny1Qnb4+U9uOrWwA45ZY8AlRxDlDeWY9macgA8IQUjv3JBbPAHoQ6L1 9MrfY+27z5Mpx/qV+OZBeR+kJxfNygRWe+QLOwxbrx9+OhPwAqFDn8CasFCeLSCzcpyJ 7p4YaZcr2VQa9EZ2r2DWbUhZqOb8dMUB2o8dFH5wQFpY5FHEqZF5aR2D1tkGGI2girPz KLQFucU41zIKscFk/i1A0+7ZQKncDugdo4pD7p/5GZ64zc3b9WhEerSJhbAcQCk9D151 Ddkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DnXTUDKPshyW0vvJloxGMP4WvfSInvzZ1Z9+AH3EI/o=; b=jGrAYK0bL6Rui/RM3MuPVRCR5hlaqZrv301Ar5viBKiCauWZ+Y9PbI3tOpgsf3ZaE/ 8M8h+WsJw5tbjhWDN3AZq45DpBSaAxJs5dElCca5/xyf0QIQue2bASKhBe0czQRwKNVn AslxdymVxejA7+nwRsM1AgtchZriBzyp3jiHVS3jaS4+97fRetw5dDjQvoiGo6itPv/+ R2bGhRtoDwVSK6FE0pRV0sUyEb8zGVRdRstNnTVyjmU1wXOJMB5R5kTRJBtNvusWIxNO wxDXK643Ek04XOunAPnFkeXWTKPaTcBF742ZzliVdbfY45AxM7ggs2Hba+UoBFxA4ZkA a/GA== X-Gm-Message-State: AGi0Pua8jiRts5h1vOwuj77Iw9KEZRorIMWSoGv5bx/II4CcK7rK+TZb PGDNGH+fIO7/+CC89PXPynw= X-Google-Smtp-Source: APiQypLq8uoMlBKefrcbZOJJPU8YqGKxOtC1Q5vUuAXIgQoN5/p+Ndmnx83qSO6Y53pnrddtCuDjpQ== X-Received: by 2002:ac8:7183:: with SMTP id w3mr6226095qto.307.1588374026650; Fri, 01 May 2020 16:00:26 -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 y185sm3797937qkd.29.2020.05.01.16.00.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 May 2020 16:00:26 -0700 (PDT) In-Reply-To: <542564DC-6DD0-41E5-A9CC-365673D68BE0@gmail.com> X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=casouri@gmail.com; helo=mail-qt1-x82a.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::82a 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:248351 Archived-At: > On May 1, 2020, at 6:53 PM, Yuan Fu wrote: >=20 >=20 >=20 >> On May 1, 2020, at 2:16 PM, Dmitry Gutov wrote: >>=20 >> On 01.05.2020 21:09, Stefan Monnier wrote: >>> we could probably rename some existing >>> functions to use the `string-` prefix >>=20 >> We have both 'match-string' and 'string-match', which do different = things. Any particular ideas for renaming? >>=20 >=20 > That reminded me that regex-related functions are not very well-named, = namely >=20 > re-search-forward > re-search-backward > replace-regexp-in-string > replace-match > string-match > match-string >=20 > These are what I can come think of on top of my head. String-match is = especially bad. Every times I search with string with re/regexp and just = couldn=E2=80=99t find the function that matches regexp in string=E2=80=A6 = I suggest give every re-related functions a re- prefix.=20 >=20 > Yuan What about re-search-forward re-search-forward re-search-backward re-search-backward replace-regexp-in-string re-replace-in-string replace-match re-replace-match string-match re-search-in-string match-string re-matched-string Or something along that line? Yuan=