]> code.delx.au - gnu-emacs/commitdiff
* ido.el (ido-unload-function): New function.
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 9 Sep 2008 14:00:58 +0000 (14:00 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 9 Sep 2008 14:00:58 +0000 (14:00 +0000)
lisp/ChangeLog
lisp/ido.el

index 281d334416d898749cc7695f02dd7c5d95ed4d8d..b40dbf7a27ce10fcbda376c69ad3ac342bd26471 100644 (file)
@@ -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.
index 7a45949f259823e4a830ba8997f435cc4104a66f..7d28b101d351933edcedd942dab5d1a1c8718de4 100644 (file)
@@ -4658,6 +4658,13 @@ DEF, if non-nil, is the default value."
        (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