changeset 98110:c4934c5221ea

* ido.el (ido-unload-function): New function.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 09 Sep 2008 14:00:58 +0000
parents 4069f64c7d4c
children 0471db1b87ac
files lisp/ChangeLog lisp/ido.el
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Sep 09 11:09:31 2008 +0000
+++ b/lisp/ChangeLog	Tue Sep 09 14:00:58 2008 +0000
@@ -1,3 +1,7 @@
+2008-09-09  Juanma Barranquero  <lekktu@gmail.com>
+
+	* ido.el (ido-unload-function): New function.
+
 2008-09-08  Juanma Barranquero  <lekktu@gmail.com>
 
 	* ido.el (ido-file-internal): Fix typo in prompt.
--- a/lisp/ido.el	Tue Sep 09 11:09:31 2008 +0000
+++ b/lisp/ido.el	Tue Sep 09 14:00:58 2008 +0000
@@ -4658,6 +4658,13 @@
 	(ido-choice-list choices))
     (ido-read-internal 'list prompt hist def require-match initial-input)))
 
+(defun ido-unload-function ()
+  "Unload the Ido library."
+  (ido-mode -1)
+  (setq minor-mode-map-alist (assq-delete-all 'ido-mode minor-mode-map-alist))
+  ;; continue standard unloading
+  nil)
+
 (provide 'ido)
 
 ;; arch-tag: b63a3500-1735-41bd-8a01-05373f0864da