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 18:53:31 -0400 Message-ID: <542564DC-6DD0-41E5-A9CC-365673D68BE0@gmail.com> References: <266155d4-f9c0-8ed3-8df5-32feea171076@yandex.ru> 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="53553"; 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 00:54:25 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 1jUeY5-000Dns-T9 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 00:54:25 +0200 Original-Received: from localhost ([::1]:55578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUeY4-0007dF-V2 for ged-emacs-devel@m.gmane-mx.org; Fri, 01 May 2020 18:54:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUeXI-0007Am-9m for emacs-devel@gnu.org; Fri, 01 May 2020 18:53:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUeXH-0004C5-3d for emacs-devel@gnu.org; Fri, 01 May 2020 18:53:35 -0400 Original-Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:40429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUeXG-0004B8-O7 for emacs-devel@gnu.org; Fri, 01 May 2020 18:53:34 -0400 Original-Received: by mail-qk1-x72b.google.com with SMTP id l78so10782786qke.7 for ; Fri, 01 May 2020 15:53:34 -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=6CUCLmLw0g8IHtVT1e1k3pGNfDhdE9NOJfvo30N1iYk=; b=pfxbQA5DbosiuLpe4wVQGWqQlnj7ZUligNdCt2sYMjutxT1ATyaE63xTXWY/pCiVc0 Z9tLygW8gQP1v+a4Ml+SlOt81aWOxpglHV0rhDcaKPE0mMLycnRXfXPCXVGzhGmqGkdh XA4s0HsJRUV+V+0bIKA1tdGIShTU6QSKrtC0ZxE5Y8aMHHe2PLFC0prS7zkikyyhi9rp bjoPlkikPVsVT/OLFykxKV+uw8UMNq5mxHFUZBCGKoJ0/kaCckVwxoTO/o1Idu/Q2eGQ KpkRj+Juu0ffn/i7paPPCl1Ir3u3NaZTk1B7O/jKepC9ZNcqg7TkK+RLT6s2iOlCeGD3 elwA== 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=6CUCLmLw0g8IHtVT1e1k3pGNfDhdE9NOJfvo30N1iYk=; b=aMPOu88wuNm5CRlcTQrilhp/3y+mVz1Q0/JrhD+rlOs5wp68cwcqC7DuxQOZaW2S8F 0XSGUFjGJzCkEiveC9Gj9XR1cCZ1zLoQk8o7MdUTspnSjaxqd9DH5z5jKUVptKORYtXO JS/WrKE1M38cB/nEAyVcf72PMOK9EIpZeY9DN4VDc0yiIuLlSI+5oUjQdaghSnlyMVb3 Guyu8y41evVZZrkWZBwETZColj2s+QIkS+CStJIrFRZo5xhYESwI7UPjlWp8F7zaqCdt Vzu6MyZds2OSSJFE5ZSWVBQ7CvFteZqk46pkLi/73pqHoW94aD6iJvw1reCHSdL0xy3G pF0g== X-Gm-Message-State: AGi0PuadtqnpU65nOBBSLhmfnsyUXdztffKWgKSSNnB9zS2KyNJVPLOH 35J4nopXGkH5vUNDarasUgk= X-Google-Smtp-Source: APiQypIr9mGSyS/xmaM31AJImrNXVXsTVFFs80F21ZntiijLVQiSEFrjlSyiRl3cpM6b+HKSIDIj6Q== X-Received: by 2002:a05:620a:1202:: with SMTP id u2mr6074586qkj.285.1588373613375; Fri, 01 May 2020 15:53:33 -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 t1sm3693804qtd.65.2020.05.01.15.53.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 May 2020 15:53:33 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::72b; envelope-from=casouri@gmail.com; helo=mail-qk1-x72b.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::72b 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:248350 Archived-At: > 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 That reminded me that regex-related functions are not very well-named, = namely re-search-forward re-search-backward replace-regexp-in-string replace-match string-match match-string 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 Yuan=