Browse Source

Completion: Fix some issues with ido

Carsten Dominik 16 years ago
parent
commit
113bec9eeb
2 changed files with 8 additions and 1 deletions
  1. 3 0
      lisp/ChangeLog
  2. 5 1
      lisp/org.el

+ 3 - 0
lisp/ChangeLog

@@ -2,6 +2,9 @@
 
 	* org.el (org-get-wdays): Find the warning period also if it is in
 	the wrong place.
+	(org-ido-completing-read): Provide the correct arguments to
+	ido-completing-read and bind `ido-enter-matching-directory' to
+	nil.
 
 2009-02-17  Carsten Dominik  <carsten.dominik@gmail.com>
 

+ 5 - 1
lisp/org.el

@@ -7044,9 +7044,13 @@ used as the link location instead of reading one interactively."
 	   (fboundp 'ido-completing-read)
 	   (boundp 'ido-mode) ido-mode
 	   (listp (second args)))
-      (apply 'ido-completing-read (concat (car args)) (cdr args))
+      (let ((ido-enter-matching-directory nil))
+	(apply 'ido-completing-read (concat (car args))
+	       (mapcar (lambda (x) (car x)) (nth 1 args))
+	       (cddr args)))
     (apply 'completing-read args)))
 
+
 (defun org-extract-attributes (s)
   "Extract the attributes cookie from a string and set as text property."
   (let (a attr (start 0) key value)