From: Simon Josefsson <jas@extundo.com>
Subject: new behaviour of `split-string'
Date: Fri, 14 Nov 2003 23:20:47 +0100 [thread overview]
Message-ID: <ilubrretww0.fsf@latte.josefsson.org> (raw)
A Gnus bug was caused by a problem with `split-string'.
Emacs 21.2:
(split-string ":foo:bar" ":")
=> ("foo" "bar")
Emacs CVS:
(split-string ":foo:bar" ":")
=> ("" "foo" "bar")
There is no NEWS entry for this change, although it seems important
enough to warrant one.
Is this a bug in Emacs CVS or a feature that lack a NEWS entry?
The docstring for the function has been changed.
Emacs 21.2:
If there is match for SEPARATORS at the beginning of STRING, we do not
include a null substring for that. Likewise, if there is a match
at the end of STRING, we don't include a null substring for that.
Emacs CVS:
The beginning and end of STRING, and each match for SEPARATORS, are
splitting points. The substrings matching SEPARATORS are removed, and
the substrings between the splitting points are collected as a list,
which is returned.
I suggest adding the following to NEWS:
*** The function `split-string' now include a null substring when
there is a SEPARATOR at the beginning or end of STRING.
next reply other threads:[~2003-11-14 22:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-14 22:20 Simon Josefsson [this message]
2003-11-14 23:14 ` new behaviour of `split-string' Luc Teirlinck
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ilubrretww0.fsf@latte.josefsson.org \
--to=jas@extundo.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).