emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Refile is not using IDO


From: Nicolas Goaziou
Subject: Re: [O] Refile is not using IDO
Date: Tue, 02 Feb 2016 17:41:14 +0100

Hello,

Vitalie Spinu <address@hidden> writes:

> I cannot get IDO working with refile anymore. The following change seem to be
> relevant:
>
> @@ -12008,12 +11980,11 @@ this is used for the GOTO interface."
>    (unless org-refile-target-table
>      (user-error "No refile targets"))
>    (let* ((cbuf (current-buffer))
> -      (partial-completion-mode nil)
>        (cfn (buffer-file-name (buffer-base-buffer cbuf)))
>        (cfunc (if (and org-refile-use-outline-path
>                        org-outline-path-complete-in-steps)
> -                 'org-olpath-completing-read
> -               'org-icompleting-read))
> +                 #'org-olpath-completing-read
> +               #'completing-read))
>        (extra (if org-refile-use-outline-path "/" ""))
>        (cbnex (concat (buffer-name) extra))
>        (filename (and cfn (expand-file-name cfn)))
>
>
>
>
> And presumably obsoleted ido completion. I don't see anything mentioned in
> org-completion-use-ido, tough.

The idea behind this patch is that IDO completion should be handled by
IDO, not Org. IOW, Org uses `completing-read' and IDO does its magic,
e.g., by setting `completing-read-function'.

> How do I activate ido with refile now?

I cannot tell, I don't use IDO. In the worst case, you can always
replace `completing-read-function' with `ido-completing-read'. I assume
there is some setting in IDO allowing to do it automatically.


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]