diff options
| author | Leo Liu | 2011-03-29 16:25:31 +0800 |
|---|---|---|
| committer | Leo Liu | 2011-03-29 16:25:31 +0800 |
| commit | ea62283460e5aae0f3e5dc68f38d035d5f17f540 (patch) | |
| tree | e43ce7f3c03068eb467f539c06a880f14ef26fca | |
| parent | ac45a3386eab2644a1c21d8816e247d596e29a5e (diff) | |
| download | emacs-ea62283460e5aae0f3e5dc68f38d035d5f17f540.tar.gz emacs-ea62283460e5aae0f3e5dc68f38d035d5f17f540.zip | |
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 @@ | |||
| 1 | 2011-03-29 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * ido.el (ido-read-internal): Use the default history var | ||
| 4 | minibuffer-history if no HISTORY is specified. | ||
| 5 | |||
| 1 | 2011-03-28 Leo Liu <sdl.web@gmail.com> | 6 | 2011-03-28 Leo Liu <sdl.web@gmail.com> |
| 2 | 7 | ||
| 3 | * abbrev.el (abbrev-table-empty-p): New function. | 8 | * 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." | |||
| 2151 | 2151 | ||
| 2152 | (t | 2152 | (t |
| 2153 | (setq done t)))))) | 2153 | (setq done t)))))) |
| 2154 | (and history (add-to-history history ido-selected)) | 2154 | (add-to-history (or history 'minibuffer-history) ido-selected) |
| 2155 | ido-selected)) | 2155 | ido-selected)) |
| 2156 | 2156 | ||
| 2157 | (defun ido-edit-input () | 2157 | (defun ido-edit-input () |