From: Stefan Kangas <stefankangas@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 87e422f: Beef up the Emacs string utility set a bit
Date: Mon, 21 Dec 2020 13:05:23 -0600 [thread overview]
Message-ID: <CADwFkmkL2uCj3gs7rT9H+vn3HUAPiD3Srndr5EoeJHkfTZeGiw@mail.gmail.com> (raw)
In-Reply-To: <87a6u7dmnw.fsf@gnus.org>
Lars Ingebrigtsen <larsi@gnus.org> writes:
> I've been going through
>
> https://github.com/magnars/s.el
>
> to see whether there's anything there that seems both 1) useful and 2)
> Emacs doesn't have already, but there was less than I remembered,
> really. With the five functions I added, the rest are mostly just
> aliases for stuff we have in Emacs 28.
I had a look at GitHub to get some data, in case that helps.
> Things I wasn't sure about:
>
> s-chomp (s)
>
> Is this really useful? Emacs is so un-line-oriented that I can't recall
> having removed newlines from a string ever...
It seems to have some real world usage, at least:
https://github.com/search?l=Emacs+Lisp&q=s-chomp&type=Code
> s-center (len s)
>
> I can squint a bit and almost see how this would be useful, but not
> really? I can only remember padding either to the left or right.
Not used a lot:
https://github.com/search?l=Emacs+Lisp&p=2&q=s-center&type=Code
> s-shared-start (s1 s2)
> s-shared-end (s1 s2)
>
> I don't see the utility.
Not used a lot:
https://github.com/search?l=Emacs+Lisp&p=2&q=s-shared-start&type=Code
> s-repeat (num s)
>
> This neither.
Seems to see some use, but not a lot:
https://github.com/search?l=Emacs+Lisp&q=s-repeat&type=Code
> There's also a bunch of "titleize" functions that just seem to quirky.
> And the camelCase and SnakeCase functions? Dunno, I think they're best
> left in the s.el for people that want that.
Unsure about titleize, but here we have:
https://github.com/search?l=Emacs+Lisp&q=s-titleize&type=Code
next prev parent reply other threads:[~2020-12-21 19:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20201221175345.27592.89597@vcs0.savannah.gnu.org>
[not found] ` <20201221175347.9F1B820B76@vcs0.savannah.gnu.org>
2020-12-21 18:24 ` master 87e422f: Beef up the Emacs string utility set a bit Stefan Kangas
2020-12-21 18:32 ` Lars Ingebrigtsen
2020-12-21 18:44 ` Lars Ingebrigtsen
2020-12-21 19:05 ` Stefan Kangas [this message]
2020-12-21 20:03 ` Lars Ingebrigtsen
2020-12-21 20:18 ` Basil L. Contovounesios
2020-12-21 20:38 ` Clément Pit-Claudel
2020-12-21 21:11 ` Lars Ingebrigtsen
2020-12-21 21:29 ` Clément Pit-Claudel
2020-12-21 21:32 ` Lars Ingebrigtsen
2020-12-21 20:20 ` Clément Pit-Claudel
2020-12-21 20:34 ` Lars Ingebrigtsen
2020-12-21 20:44 ` Clément Pit-Claudel
2020-12-21 21:06 ` Lars Ingebrigtsen
2020-12-21 22:13 ` Basil L. Contovounesios
2020-12-21 22:19 ` Lars Ingebrigtsen
2020-12-22 10:41 ` Mattias Engdegård
2020-12-22 14:48 ` Lars Ingebrigtsen
2020-12-22 15:03 ` Mattias Engdegård
2020-12-22 15:24 ` Alfred M. Szmidt
2020-12-21 19:05 ` Stefan Monnier
2020-12-21 19:19 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADwFkmkL2uCj3gs7rT9H+vn3HUAPiD3Srndr5EoeJHkfTZeGiw@mail.gmail.com \
--to=stefankangas@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.