From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Make org-iswitchb see all agenda files (not only opened ones) Date: Wed, 28 May 2014 21:38:11 +0200 Message-ID: <87lhtl4rto.fsf@bzg.ath.cx> References: <87ha4aaqjg.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wpjg5-0002oi-NK for emacs-orgmode@gnu.org; Wed, 28 May 2014 15:38:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wpjg0-0003Lh-OD for emacs-orgmode@gnu.org; Wed, 28 May 2014 15:38:21 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:55813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wpjg0-0003L2-HR for emacs-orgmode@gnu.org; Wed, 28 May 2014 15:38:16 -0400 Received: by mail-wi0-f178.google.com with SMTP id cc10so4401558wib.5 for ; Wed, 28 May 2014 12:38:15 -0700 (PDT) In-Reply-To: <87ha4aaqjg.fsf@kyleam.com> (Kyle Meyer's message of "Wed, 28 May 2014 11:09:23 -0400") 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: Kyle Meyer Cc: Florian Lindner , emacs-orgmode@gnu.org 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.) -- Bastien