Function: ido-load-history
ido-load-history is an interactive and byte-compiled function defined
in ido.el.gz.
Signature
(ido-load-history &optional ARG)
Documentation
Load Ido history and cache information from previous session.
With prefix argument, reload history unconditionally.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-load-history (&optional arg)
"Load Ido history and cache information from previous session.
With prefix argument, reload history unconditionally."
(interactive "P")
(if (or arg (and ido-save-directory-list-file (not ido-last-directory-list)))
(let ((file (expand-file-name ido-save-directory-list-file))
buf)
(when (file-readable-p file)
(setq buf (get-buffer-create " *ido session*"))
(unwind-protect
(with-current-buffer buf
(erase-buffer)
(insert-file-contents file)
(condition-case nil
(setq ido-last-directory-list (read (current-buffer))
ido-work-directory-list (read (current-buffer))
ido-work-file-list (read (current-buffer))
ido-dir-file-cache (read (current-buffer))
ido-unc-hosts-cache (read (current-buffer)))
(error nil)))
(kill-buffer buf)))))
(ido-wash-history))