diff options
author | Leo Liu <sdl.web@gmail.com> | 2011-03-29 16:25:31 +0800 |
---|---|---|
committer | Leo Liu <sdl.web@gmail.com> | 2011-03-29 16:25:31 +0800 |
commit | ea62283460e5aae0f3e5dc68f38d035d5f17f540 (patch) | |
tree | e43ce7f3c03068eb467f539c06a880f14ef26fca | |
parent | ac45a3386eab2644a1c21d8816e247d596e29a5e (diff) | |
download | emacs-ea62283460e5aae0f3e5dc68f38d035d5f17f540.tar.gz |
Add to minibuffer-history if HISOTRY is nil in ido.el
It is broken by the change on 2011-03-21.
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/ido.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9eeac0d2155..57916aa2f0a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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. diff --git a/lisp/ido.el b/lisp/ido.el index 177f9338870..0ce83d9b88c 100644 --- a/lisp/ido.el +++ b/lisp/ido.el @@ -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 () |