Reading directory names in helm

23 views
Skip to first unread message

fi nurr

unread,
Feb 29, 2016, 6:49:38 AM2/29/16
to emacs-helm
Hello all,

I would like to replace the helm-builtin mechanism to read directory names with the ido one, which is more convenient for me.

In order to do so I set the following:
    (setq helm-completing-read-handlers-alist
          '((find-file . ido)
            (read-directory-name . ido-read-directory-name)))

However, If I do
(defun testfun (dirname)
  (interactive "DDirname: ")
 ...)


Emacs (25.0.50.1, helm 20160228.2144) still shows up the helm directory completion when doing M-x testfun.
Which point am I missing?

Thanks in advance.

/fi

Thierry Volpiatto

unread,
Feb 29, 2016, 7:24:19 AM2/29/16
to emacs...@googlegroups.com

fi nurr <fi.n...@gmail.com> writes:

> Hello all,
>
> I would like to replace the helm-builtin mechanism to read directory
> names with the ido one, which is more convenient for me.
>
> In order to do so I set the following:
> (setq helm-completing-read-handlers-alist
> '((find-file . ido)
> (read-directory-name . ido-read-directory-name)))

No.

> However, If I do
> (defun testfun (dirname)
> (interactive "DDirname: ")
> ...)

Do like this:

(defun test-fun (dirname)
(interactive "DDirectory: ")
(message "Dirname: %s" dirname))
(add-to-list 'helm-completing-read-handlers-alist '(test-fun . ido))

--
Thierry

fi nurr

unread,
Feb 29, 2016, 8:03:26 AM2/29/16
to emacs-helm

Oh, that way around. Thanks for the quick reply!

/fi
Reply all
Reply to author
Forward
0 new messages