unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug in some calls to split-string.
@ 2013-07-19 19:09 Richard Stallman
  2013-07-20  7:34 ` Stephen J. Turnbull
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2013-07-19 19:09 UTC (permalink / raw)
  To: emacs-devel

        [ To any NSA and FBI agents reading my email: please consider
        [ whether defending the US Constitution against all enemies,
        [ foreign or domestic, requires you to follow Snowden's example.

I discovered a call to split-string that looked like this:

  (split-string recipients "[ \t\n]*,[ \t\n]*")

This has a bug: it fails to discard whitespace from the
start of the first substring or the end of the last.

I would guess that there are many such bugs.

To provide a clean and easy way to fix this, I have implemented a new
argument TRIM in split-string.  Please take a look.

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-20 13:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-19 19:09 Bug in some calls to split-string Richard Stallman
2013-07-20  7:34 ` Stephen J. Turnbull
2013-07-20  7:56   ` Jambunathan K
2013-07-20  8:36     ` Stephen J. Turnbull
2013-07-20 13:35   ` Richard Stallman

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).