]> code.delx.au - gnu-emacs/commitdiff
Backport: * lisp/ido.el (ido-set-matches-1): Fix split-string args to
authorLeo Liu <sdl.web@gmail.com>
Sat, 10 Nov 2012 14:55:09 +0000 (22:55 +0800)
committerLeo Liu <sdl.web@gmail.com>
Sat, 10 Nov 2012 14:55:09 +0000 (22:55 +0800)
avoid performance issue.

Fixes: debbugs:12796
lisp/ChangeLog
lisp/ido.el

index 9cd1a921440ddd75f5613d77559b6d437a134f59..542c80abeec0b7994569bf28af44af13c242c3d3 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-10  Leo Liu  <sdl.web@gmail.com>
+
+       * ido.el (ido-set-matches-1): Fix split-string args to avoid
+       performance issue.  (Bug#12796)
+
 2012-11-10  Glenn Morris  <rgm@gnu.org>
 
        * term.el (term-default-fg-color, term-default-bg-color):
index 4ab183b320745bc46855f842ed749850372e3a28..88b84268ff89bd99c937cb2b6daa205786648cae 100644 (file)
@@ -3764,7 +3764,7 @@ This is to make them appear as if they were \"virtual buffers\"."
               ido-enable-flex-matching
               (> (length ido-text) 1)
               (not ido-enable-regexp))
-      (setq re (mapconcat #'regexp-quote (split-string ido-text "") ".*"))
+      (setq re (mapconcat #'regexp-quote (split-string ido-text "" t) ".*"))
       (if ido-enable-prefix
          (setq re (concat "\\`" re)))
       (mapc