|
@@ -10503,23 +10503,27 @@ from."
|
|
|
"Completing-read using `ido-mode' or `iswitchb' speedups if available."
|
|
|
(org-without-partial-completion
|
|
|
(if (and org-completion-use-ido
|
|
|
- (fboundp 'ido-completing-read)
|
|
|
- (boundp 'ido-mode) ido-mode
|
|
|
- (listp (second args)))
|
|
|
+ (fboundp 'ido-completing-read)
|
|
|
+ (boundp 'ido-mode) ido-mode
|
|
|
+ (listp (second args)))
|
|
|
(let ((ido-enter-matching-directory nil))
|
|
|
- (apply 'ido-completing-read (concat (car args))
|
|
|
- (if (consp (car (nth 1 args)))
|
|
|
- (mapcar 'car (nth 1 args))
|
|
|
- (nth 1 args))
|
|
|
- (cddr args)))
|
|
|
+ (apply (if (eq completing-read-function
|
|
|
+ 'completing-read-default)
|
|
|
+ 'ido-completing-read
|
|
|
+ completing-read-function)
|
|
|
+ (concat (car args))
|
|
|
+ (if (consp (car (nth 1 args)))
|
|
|
+ (mapcar 'car (nth 1 args))
|
|
|
+ (nth 1 args))
|
|
|
+ (cddr args)))
|
|
|
(if (and org-completion-use-iswitchb
|
|
|
- (boundp 'iswitchb-mode) iswitchb-mode
|
|
|
- (listp (second args)))
|
|
|
- (apply 'org-iswitchb-completing-read (concat (car args))
|
|
|
- (if (consp (car (nth 1 args)))
|
|
|
- (mapcar 'car (nth 1 args))
|
|
|
- (nth 1 args))
|
|
|
- (cddr args))
|
|
|
+ (boundp 'iswitchb-mode) iswitchb-mode
|
|
|
+ (listp (second args)))
|
|
|
+ (apply 'org-iswitchb-completing-read (concat (car args))
|
|
|
+ (if (consp (car (nth 1 args)))
|
|
|
+ (mapcar 'car (nth 1 args))
|
|
|
+ (nth 1 args))
|
|
|
+ (cddr args))
|
|
|
(apply 'completing-read args)))))
|
|
|
|
|
|
(defun org-extract-attributes (s)
|