* new behaviour of `split-string'
@ 2003-11-14 22:20 Simon Josefsson
2003-11-14 23:14 ` Luc Teirlinck
0 siblings, 1 reply; 2+ messages in thread
From: Simon Josefsson @ 2003-11-14 22:20 UTC (permalink / 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: new behaviour of `split-string'
2003-11-14 22:20 new behaviour of `split-string' Simon Josefsson
@ 2003-11-14 23:14 ` Luc Teirlinck
0 siblings, 0 replies; 2+ messages in thread
From: Luc Teirlinck @ 2003-11-14 23:14 UTC (permalink / raw)
Cc: emacs-devel
Simon Josefsson <jas@extundo.com> wrote:
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 latter.
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.
The actual behavior is somewhat more complicated. I have added a NEWS
entry.
Sincerely,
Luc.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-14 23:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-14 22:20 new behaviour of `split-string' Simon Josefsson
2003-11-14 23:14 ` Luc Teirlinck
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.