From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ams@gnu.org (Alfred M. Szmidt) Newsgroups: gmane.emacs.devel Subject: Re: dash.el [was: Re: Imports / inclusion of s.el into Emacs] Date: Sat, 09 May 2020 06:57:54 -0400 Message-ID: References: Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="9659"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joostkremers@fastmail.fm, rms@gnu.org, Emacs-devel@gnu.org To: =?UTF-8?Q?To=3A_=C3=AC=C2=A1=C2=B0=C3=AC=C2=84=C2=B1=C3=AB=C2=B9=C2=88_?= =?UTF-8?Q?=3Cpcr910303=40icloud=2Ecom=3E=0A?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 09 12:58:30 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 1jXNBe-0002P5-TK for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 12:58:30 +0200 Original-Received: from localhost ([::1]:44130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXNBd-0006Um-UZ for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 06:58:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXNB7-0005Rk-Mc for Emacs-devel@gnu.org; Sat, 09 May 2020 06:57:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50135) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXNB7-00053K-DZ; Sat, 09 May 2020 06:57:57 -0400 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jXNB4-0000Gp-9c; Sat, 09 May 2020 06:57:54 -0400 In-reply-to: =?UTF-8?Q?In-reply-to=3A_=3CCA35E3CA-ECA6-4AB5-A1AA-5607C202D683=40icloud?= =?UTF-8?Q?=2Ecom=3E_=28message_from=0A=09=C3=AC=C2=A1=C2=B0=C3=AC=C2=84?= =?UTF-8?Q?=C2=B1=C3=AB=C2=B9=C2=88_on_Sat=2C_9_May_2020_13=3A26=3A28_+090?= =?UTF-8?Q?0=29=0A?= 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:249396 Archived-At: Just that some aliases exist for consistency doesn’t mean that the whole package is filled with aliases. Nobody claimed that, quite the opposite. The main flaw of s.el is still that it is _mainly_ trivial wrappers. A function for finding the common suffix seems like a useful addition, that is very concrete and can most surley be added to e.g. subr-x.el or subr.el as maybe 'string-common-suffix STRING1 STRING' or something similar, and implemented using `compare-strings' It would be interesting to hear how people use this function, is it as a predicate (where string-suffix-p on both strings would suffice) or do you use the returned value which seems uninteresting?