# HG changeset patch # User Andreas Schwab # Date 1224523769 0 # Node ID 24d03d4e9afebf2dcc9854e9b0eaca568a15a16a # Parent 3f36bcd67163f8c656ad09ebfc9d4482c272a75c (split-string-and-unquote): Simplify regexp. diff -r 3f36bcd67163 -r 24d03d4e9afe lisp/ChangeLog --- a/lisp/ChangeLog Mon Oct 20 16:15:56 2008 +0000 +++ b/lisp/ChangeLog Mon Oct 20 17:29:29 2008 +0000 @@ -1,3 +1,7 @@ +2008-10-20 Andreas Schwab + + * subr.el (split-string-and-unquote): Simplify regexp. + 2008-10-20 Eli Zaretskii * subr.el (top-level): Require `cl' when compiling. diff -r 3f36bcd67163 -r 24d03d4e9afe lisp/subr.el --- a/lisp/subr.el Mon Oct 20 16:15:56 2008 +0000 +++ b/lisp/subr.el Mon Oct 20 17:29:29 2008 +0000 @@ -2922,7 +2922,7 @@ (split-string-and-unquote (combine-and-quote-strings strs)) == strs The SEPARATOR regexp defaults to \"\\s-+\"." (let ((sep (or separator "\\s-+")) - (i (string-match "[\"]" string))) + (i (string-match "\"" string))) (if (null i) (split-string string sep t) ; no quoting: easy (append (unless (eq i 0) (split-string (substring string 0 i) sep t))