From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.devel Subject: Re: Imports / inclusion of s.el into Emacs Date: Sun, 3 May 2020 12:06:28 +0200 Message-ID: References: <87ftchy0go.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f6d2eb05a4bb92f3" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="66383"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Stefan Monnier , Richard Stallman , Emacs developers To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 03 12:08: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 1jVBXg-000HAm-Mh for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 12:08:12 +0200 Original-Received: from localhost ([::1]:34262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVBXf-00049j-Ns for ged-emacs-devel@m.gmane-mx.org; Sun, 03 May 2020 06:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVBWU-0002t5-Ge for emacs-devel@gnu.org; Sun, 03 May 2020 06:06:58 -0400 Original-Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]:36948) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVBWT-0005RW-OZ; Sun, 03 May 2020 06:06:58 -0400 Original-Received: by mail-lj1-x230.google.com with SMTP id b2so6748417ljp.4; Sun, 03 May 2020 03:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xcHQHl32Kq9dvAwE5241igTcWofaPP3w1f3VIOkz/4g=; b=ndqi4RiDa55VjRC0HsVorIZfGrKHcHzEa8ii4TaIsPMyjYHGbYdCzzelzpPcwXyBiz 9354z72KHBPNh8WhGsWnq7AEeDuMt4MXE4ms70yJ3DT7qIKIVIKtZhO1e3oEdr6WOAWU N/PvmzRNsAxmVKIo/gtLSiyw5fiH1wLxyxENW7ngl+jruTcg19IriorTi4N1EKtD4ASM Typh9X4HqDROitYDVZPzLuX5y8IT0VKG6qzciQnIqF0o6kXhKuYIJO8ywhDfb17vFx8Y 3xuQGdFO+Lf8YvfW6JWDwjOZanblLwKba8SmiudSVv/XlEOrVseRQgc3Ox7S+C6tbq6v 08kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xcHQHl32Kq9dvAwE5241igTcWofaPP3w1f3VIOkz/4g=; b=L3L3UNoLSJXv9jkWKpowzgG1jpoDFju9nTmjQ+K2eyvVeJaQzNs4Ci0sHETuyb+IzB CnoUYUc9f8x7Vk/AVO14SDb9DL/yoStSl0kZy4m16NUwSLXORhZtSuJ076XwE1yeKrrH 85Wo7/AuJxdhLf70RdOgYuyH4fwJO213vD/zg78lD3rI7FLjAS4boa3X1kuZVlN7lQEo G2kJzcwRVvGUbN6QvCIWZtERv2Q+gizI6haLJNKt2FL6KcjPSqET8+n8XCtCx45kqP3g mP69V5ErL9IO27STE0km0k5uEa/9yDpLuZOiZmVcBlaFASpAxzldlSyO+fLlBmO0ObmL WKhw== X-Gm-Message-State: AGi0PuY0Li7RzUmgdqEZWZnBbT9pMnbujVL30TPbo7G3ErGoWgWQvrIg K/80t+hRh9xbWMJvgszlXHwb+E07TkZVt2uvofs= X-Google-Smtp-Source: APiQypJtdUQOstHP9odLFfrkANUroCAWsxiqtooijSWhSqQujb9UPyBiR3/RKn3VN9UkwHdlWB2E53vT5cyvLhXvIlY= X-Received: by 2002:a2e:9e97:: with SMTP id f23mr7162622ljk.228.1588500415041; Sun, 03 May 2020 03:06:55 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=philippe.vaucher@gmail.com; helo=mail-lj1-x230.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:248670 Archived-At: --000000000000f6d2eb05a4bb92f3 Content-Type: text/plain; charset="UTF-8" > Can you make a top-ten? Aliases: split-string aliased as string-split downcase aliased as string-downcase upcase aliased as string-upcase format aliased as string-format concat aliased as string-concat New functions (with string- instead of s-): s-truncate (len s) s-chomp (s) s-left (len s) s-right (len s) s-repeat (num s) s-capitalize (s) s-reverse (s) s-contains-p (needle s &optional ignore-case) s-blank-p (s) Nice to have, but do not really care: s-index-of (needle s &optional ignore-case) s-center (len s) s-pad-left (len padding s) s-pad-right (len padding s) s-chop-suffixes (suffixes s) s-chop-prefixes (prefixes s) s-shared-start (s1 s2) s-shared-end (s1 s2) s-prepend (prefix s) s-append (suffix s) Hope it helps, Philippe --000000000000f6d2eb05a4bb92f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Can you make a top-ten?

Aliases:

split-string= aliased as string-split
downcase aliased as string-downcase<= /div>
upcase aliased as string-upcase
format aliased as strin= g-format
concat aliased as string-concat

New functions (with string- instead of s-):

s-tr= uncate (len s)
s-chomp (s)
s-left (len s)
s-right (len s)
s-rep= eat (num s)
s-capitalize (s)
=
s-reverse (s)
s-contains-p (needle s &o= ptional ignore-case)
s-blank-p (s)

<= div>Nice to have, but do not really care:

s-index-of (needle s &optional ignore-case)
s= -center (len s)
s-pad-left (len padding s)
s-p= ad-right (len padding s)
s-chop-suffixes (suffixe= s s)
s-chop-prefixes (prefixes s)
s-shared-start (s1 s2)
s-shared-= end (s1 s2)
s-prepend (prefix s)
s-append (suf= fix s)

Hope it helps,
Philip= pe
--000000000000f6d2eb05a4bb92f3--