]> git.eshelyaron.com Git - emacs.git/commitdiff
Add to minibuffer-history if HISOTRY is nil in ido.el
authorLeo Liu <sdl.web@gmail.com>
Tue, 29 Mar 2011 08:25:31 +0000 (16:25 +0800)
committerLeo Liu <sdl.web@gmail.com>
Tue, 29 Mar 2011 08:25:31 +0000 (16:25 +0800)
It is broken by the change on 2011-03-21.

lisp/ChangeLog
lisp/ido.el

index 9eeac0d2155f3d6f4808875fa3cc42793c682b6d..57916aa2f0a32776890f6eee730801c9027b37b0 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-29  Leo Liu  <sdl.web@gmail.com>
+
+       * ido.el (ido-read-internal): Use the default history var
+       minibuffer-history if no HISTORY is specified.
+
 2011-03-28  Leo Liu  <sdl.web@gmail.com>
 
        * abbrev.el (abbrev-table-empty-p): New function.
index 177f933887015d861a316c4a3bfba368e2adc486..0ce83d9b88c0e225f60bfeb3026c84f809df2f0f 100644 (file)
@@ -2151,7 +2151,7 @@ If INITIAL is non-nil, it specifies the initial input string."
 
         (t
          (setq done t))))))
-    (and history (add-to-history history ido-selected))
+    (add-to-history (or history 'minibuffer-history) ido-selected)
     ido-selected))
 
 (defun ido-edit-input ()