From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Make org-iswitchb see all agenda files (not only opened ones) Date: Wed, 28 May 2014 15:49:40 -0400 Message-ID: <877g5565uz.fsf@kyleam.com> References: <87ha4aaqjg.fsf@kyleam.com> <87lhtl4rto.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpjrA-0001Cg-Hi for emacs-orgmode@gnu.org; Wed, 28 May 2014 15:49:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wpjr5-0007fZ-KV for emacs-orgmode@gnu.org; Wed, 28 May 2014 15:49:48 -0400 Received: from mail-qg0-f47.google.com ([209.85.192.47]:59461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wpjr5-0007fM-Gr for emacs-orgmode@gnu.org; Wed, 28 May 2014 15:49:43 -0400 Received: by mail-qg0-f47.google.com with SMTP id j107so19328088qga.34 for ; Wed, 28 May 2014 12:49:42 -0700 (PDT) In-Reply-To: <87lhtl4rto.fsf@bzg.ath.cx> (Bastien's message of "Wed, 28 May 2014 21:38:11 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Florian Lindner , emacs-orgmode@gnu.org Hi Bastien, Bastien wrote: > Hi Kyle, > > Kyle Meyer writes: > >> `org-iswitchb' is restricted to open buffers, but the function below >> should have the behavior you want. >> >> #+begin_src elisp >> (defun org-open-agenda-file () >> (interactive) >> (find-file (org-icompleting-read "Agenda file: " org-agenda-files))) >> #+end_src > > (Yes, provided `org-agenda-files' contains only files and not > directories.) Yes, that's a good point. Thanks -- Kyle