changeset 98942:24d03d4e9afe

(split-string-and-unquote): Simplify regexp.
author Andreas Schwab <schwab@suse.de>
date Mon, 20 Oct 2008 17:29:29 +0000
parents 3f36bcd67163
children ec4e32b94c9f
files lisp/ChangeLog lisp/subr.el
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <schwab@suse.de>
+
+	* subr.el (split-string-and-unquote): Simplify regexp.
+
 2008-10-20  Eli Zaretskii  <eliz@gnu.org>
 
 	* subr.el (top-level): Require `cl' when compiling.
--- 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))