comparison lisp/ido.el @ 111894:d6652a7e443a

That's not how you spell "initialization".
author Glenn Morris <rgm@gnu.org>
date Wed, 01 Dec 2010 23:40:32 -0800
parents 8e856214e6e5
children c00190a8c8ef 376148b31b5e
comparison
equal deleted inserted replaced
111893:fb9ef71605cf 111894:d6652a7e443a
1437 1437
1438 (defun ido-kill-emacs-hook () 1438 (defun ido-kill-emacs-hook ()
1439 ;; ido kill emacs hook 1439 ;; ido kill emacs hook
1440 (ido-save-history)) 1440 (ido-save-history))
1441 1441
1442 (defun ido-common-initilization () 1442 (defun ido-common-initialization ()
1443 (ido-init-completion-maps) 1443 (ido-init-completion-maps)
1444 (add-hook 'minibuffer-setup-hook 'ido-minibuffer-setup) 1444 (add-hook 'minibuffer-setup-hook 'ido-minibuffer-setup)
1445 (add-hook 'choose-completion-string-functions 'ido-choose-completion-string)) 1445 (add-hook 'choose-completion-string-functions 'ido-choose-completion-string))
1446 1446
1447 (define-minor-mode ido-everywhere 1447 (define-minor-mode ido-everywhere
1487 (t nil))) 1487 (t nil)))
1488 1488
1489 (ido-everywhere (if ido-everywhere 1 -1)) 1489 (ido-everywhere (if ido-everywhere 1 -1))
1490 1490
1491 (when ido-mode 1491 (when ido-mode
1492 (ido-common-initilization) 1492 (ido-common-initialization)
1493 (ido-load-history) 1493 (ido-load-history)
1494 1494
1495 (add-hook 'kill-emacs-hook 'ido-kill-emacs-hook) 1495 (add-hook 'kill-emacs-hook 'ido-kill-emacs-hook)
1496 1496
1497 (let ((map (make-sparse-keymap))) 1497 (let ((map (make-sparse-keymap)))
4680 (ido-directory-nonreadable nil) 4680 (ido-directory-nonreadable nil)
4681 (ido-directory-too-big nil) 4681 (ido-directory-too-big nil)
4682 (ido-context-switch-command 'ignore) 4682 (ido-context-switch-command 'ignore)
4683 (ido-choice-list choices)) 4683 (ido-choice-list choices))
4684 ;; Initialize ido before invoking ido-read-internal 4684 ;; Initialize ido before invoking ido-read-internal
4685 (ido-common-initilization) 4685 (ido-common-initialization)
4686 (ido-read-internal 'list prompt hist def require-match initial-input))) 4686 (ido-read-internal 'list prompt hist def require-match initial-input)))
4687 4687
4688 (defun ido-unload-function () 4688 (defun ido-unload-function ()
4689 "Unload the Ido library." 4689 "Unload the Ido library."
4690 (ido-mode -1) 4690 (ido-mode -1)