From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Bozhidar Batsov <bozhidar@batsov.com>
Cc: Lars Magne Ingebrigtsen <larsi@gnus.org>,
emacs-devel <emacs-devel@gnu.org>
Subject: Re: [PATCH] * lisp/subr.el (string-suffix-p): New function.
Date: Fri, 22 Nov 2013 09:07:04 -0500 [thread overview]
Message-ID: <jwv8uwgczax.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAM9Zgm2j2Mxb7jjJorEqXyQUd3VNr0ukda6ZipcAp8Mfstxj1g@mail.gmail.com> (Bozhidar Batsov's message of "Fri, 22 Nov 2013 12:41:00 +0200")
> You can't really favour this:
> (mapconcat #'identity (list s1 s2 s3) separator)
> over:
> (string-join separator s1 s2 s3)
I'm not sure if one is clearly superior to the other. But having one,
there's not much motivation to add the other. But `string-join' can
definitely be added to the new helpers.el.
>> > * string-trim/string-trim-left/string-trim-right
>> Perhaps.
These also would be good candidates for helpers.el.
>> > * string-chop
I can't remember using something similar to string-chop. In Perl, this
was handy because it's frequent to receive "a line with a terminating
LF", but in Emacs it doesn't seem to happen nearly as often.
Stefan
next prev parent reply other threads:[~2013-11-22 14:07 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 11:24 [PATCH] * lisp/subr.el (string-suffix-p): New function Bozhidar Batsov
2013-11-22 7:06 ` Bozhidar Batsov
2013-11-22 9:12 ` Thien-Thi Nguyen
2013-11-22 10:00 ` Bozhidar Batsov
2013-11-22 10:15 ` Lars Magne Ingebrigtsen
2013-11-22 10:41 ` Bozhidar Batsov
2013-11-22 14:07 ` Stefan Monnier [this message]
2013-11-22 14:27 ` Bozhidar Batsov
2013-11-23 1:44 ` Stefan Monnier
2013-11-23 6:05 ` Josh
2013-11-23 13:57 ` Stefan Monnier
2013-11-23 10:16 ` Stephen J. Turnbull
2013-11-23 17:03 ` Lars Magne Ingebrigtsen
2013-11-22 15:06 ` Jarek Czekalski
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=jwv8uwgczax.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=bozhidar@batsov.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.