From mboxrd@z Thu Jan 1 00:00:00 1970 From: ben lamothe Subject: Re: Recovering org-completion-use-ido functionality Date: Sat, 25 Aug 2018 09:01:07 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000164a48057442185b" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ftYDF-0001NP-DH for emacs-orgmode@gnu.org; Sat, 25 Aug 2018 09:02:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftYCI-0006Og-4e for emacs-orgmode@gnu.org; Sat, 25 Aug 2018 09:01:47 -0400 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]:38779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ftYCH-0006OD-Rn for emacs-orgmode@gnu.org; Sat, 25 Aug 2018 09:01:46 -0400 Received: by mail-lf1-x12a.google.com with SMTP id i7-v6so8627264lfh.5 for ; Sat, 25 Aug 2018 06:01:45 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --000000000000164a48057442185b Content-Type: text/plain; charset="UTF-8" I've been able to implement the functionality I wanted using a buffer-local variable in an org-mode hook: > > (defun bl/completion-use-ido () > "Set the current buffer's completing read engine to IDO." > (setq-local completing-read-function #'ido-completing-read)) (add-hook 'org-mode-hook 'bl/completion-use-ido) I think that works for me, but I'm open to a better suggestion if there is one. In any case, I think re-enabling the functionality that was removed with the "org-completion-use-ido" function should be documented somewhere. On Fri, Aug 24, 2018 at 9:46 PM ben lamothe wrote: > Hi. I see from the org-mode 9.0 changelog > that the "org-completion-use-ido" > option was removed: > >> *Remove all options related to ido or iswitchb* >> This includes org-completion-use-iswitchb and org-completion-use-ido. >> Instead Org uses regular functions, e.g., completion-read so as to let >> those libraries operate. > > > However, I'm unclear from the changelog and I haven't found any other > documentation about how to restore the functionality that this option used > to enable. I have tried ido-completing-read-plus/ido-ubiquitous > , but that > is overkill because it tries to enable ido everywhere, but I just want to > re-enable ido for org-mode completion (mainly refile). I also run into the > same problem if I try to set the completing read function to the one from > ido globally. > > What is the best way to restore the functionality of the now removed > "org-completion-use-ido" option? > --000000000000164a48057442185b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've been able to implement the functionality I wanted= using a buffer-local variable in an org-mode hook:
(defun bl/completion-use-ido ()
=C2=A0 "S= et the current buffer's completing read engine to IDO."
=C2=A0 = (setq-local completing-read-function #'ido-completing-read))=C2=A0
(add-hook 'or= g-mode-hook 'bl/completion-use-ido)
=C2=A0
I= think that works for me, but I'm open to a better suggestion if there = is one. In any case, I think re-enabling the functionality that was removed= with the "org-completion-use-ido" function should be documented = somewhere.=C2=A0

On Fri, Aug 24, 2018 at 9:46 PM ben lamothe <zonotope@gmail.com> wrote:
Hi. I see from the=C2=A0org-mode 9.0 changelog=C2= =A0that the "org-completion-use-ido" option was removed:
Remove all options rela= ted to ido or iswitchb
This includes org-completion-use-iswitchb= and org-completion-use-ido. Instead Org uses regular functions, e.g., comp= letion-read so as to let those libraries operate.

However, I'm unclear from the changelog and I haven't found = any other documentation about how to restore the functionality that this op= tion used to enable. I have tried=C2=A0ido-completing-read= -plus/ido-ubiquitous, but that is overkill because it tries to enable i= do everywhere, but I just want to re-enable ido for org-mode completion (ma= inly refile). I also run into the same problem if I try to set the completi= ng read function to the one from ido globally.=C2=A0

What is the best way to restore the functionality of the now remov= ed "org-completion-use-ido" option?
--000000000000164a48057442185b--