Commit bd794450 authored by Leo Liu's avatar Leo Liu Committed by Stefan Monnier
Browse files

* lisp/ido.el (ido-common-initilization): New function.

(ido-mode): Use it.
(ido-completing-read): Call it.

Fixes: debbugs:3274
parent 402c8a49
2010-12-01 Leo <>
* ido.el (ido-common-initilization): New function. (bug#3274)
(ido-mode): Use it.
(ido-completing-read): Call it.
2010-11-27 Chong Yidong <>
* log-edit.el (log-edit-font-lock-keywords): Don't try matching
......@@ -1439,6 +1439,11 @@ Removes badly formatted data and ignored directories."
;; ido kill emacs hook
(defun ido-common-initilization ()
(add-hook 'minibuffer-setup-hook 'ido-minibuffer-setup)
(add-hook 'choose-completion-string-functions 'ido-choose-completion-string))
(define-minor-mode ido-everywhere
"Toggle using ido speed-ups everywhere file and directory names are read.
With ARG, turn ido speed-up on if arg is positive, off otherwise."
......@@ -1482,12 +1487,9 @@ This function also adds a hook to the minibuffer."
(t nil)))
(ido-everywhere (if ido-everywhere 1 -1))
(when ido-mode
(when ido-mode
(add-hook 'minibuffer-setup-hook 'ido-minibuffer-setup)
(add-hook 'choose-completion-string-functions 'ido-choose-completion-string)
(add-hook 'kill-emacs-hook 'ido-kill-emacs-hook)
......@@ -4679,6 +4681,8 @@ DEF, if non-nil, is the default value."
(ido-directory-too-big nil)
(ido-context-switch-command 'ignore)
(ido-choice-list choices))
;; Initialize ido before invoking ido-read-internal
(ido-read-internal 'list prompt hist def require-match initial-input)))
(defun ido-unload-function ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment