From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-iswitchb documentation Date: Tue, 29 Jun 2010 09:26:57 +0200 Message-ID: References: <20386.1277720390@maps> <2E246530-D91C-424E-82F1-D9BD5B18AD0B@gmail.com> <3065.1277727993@maps> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=56673 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTVYo-0003lk-9m for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 03:48:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTVYn-0003VJ-1g for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 03:48:50 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:63530) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTVYm-0003VA-Sv for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 03:48:48 -0400 Received: by wwf26 with SMTP id 26so3703433wwf.0 for ; Tue, 29 Jun 2010 00:48:47 -0700 (PDT) In-Reply-To: <3065.1277727993@maps> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stephen Eglen Cc: emacs-orgmode@gnu.org On Jun 28, 2010, at 2:26 PM, Stephen Eglen wrote: > Carsten Dominik wrote: > >> I think this is actually a bug. Since the command is called ...- >> iswitchb, >> I am sure the intention was to use iswitchbe. Later, when we added >> ido >> support as well, the function was rewritten using >> org-icompleting-read, and in this way the iswitchb support was lost. >> >> >> How about the following solution: >> >> Check if either of org-completion-use-\(ido\|iswitchb\) is set. If >> not, >> bind org-completion-use-iswitchb around the call to org-icompleting- >> read. > > Ok, now that makes a lot more sense! I wondered why the > 'out-of-the-box' behaviour didn't show iswitchb like behaviour. THe doc string now reads: "Use `org-icompleting-read' to prompt for an Org buffer to switch to. With a prefix argument, restrict available to files. With two prefix arguments, restrict available buffers to agenda files. This will either use ido or iswitchb for buffer name completion, depending on the variables `org-completion-use-iswitchb' and `org-completion-use-ido'. If both are nil, we will still use iswitchb for this special application." Agreed? - Carsten