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 11:09:23 -0400 Message-ID: <87ha4aaqjg.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpfTx-0003zU-L9 for emacs-orgmode@gnu.org; Wed, 28 May 2014 11:09:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpfTr-0002VT-46 for emacs-orgmode@gnu.org; Wed, 28 May 2014 11:09:33 -0400 Received: from mail-qg0-f46.google.com ([209.85.192.46]:48675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpfTr-0002Uh-0g for emacs-orgmode@gnu.org; Wed, 28 May 2014 11:09:27 -0400 Received: by mail-qg0-f46.google.com with SMTP id q108so17645593qgd.5 for ; Wed, 28 May 2014 08:09:25 -0700 (PDT) In-Reply-To: (Florian Lindner's message of "Wed, 28 May 2014 10:23:50 +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: Florian Lindner Cc: emacs-orgmode@gnu.org Florian Lindner wrote: > Hello, > > can I make org-iswitchb consider not only already opened files but all > agenda files, just like org-agenda? > > I tried one and two prefix arguments, but org-iswitchb always considers > only files that are already opened. `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 -- Kyle