From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wiegley Subject: Quick function to search all Agenda buffers Date: Sun, 23 Sep 2007 19:02:46 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZaTc-0005fK-My for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 19:03:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZaTb-0005ef-1z for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 19:03:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZaTa-0005eb-Sk for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 19:02:58 -0400 Received: from johnwiegley.com ([208.70.150.153] helo=mail.johnwiegley.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZaTa-0005Hu-BX for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 19:02:58 -0400 Received: from Hermes.local (unknown [200.50.72.156]) by mail.johnwiegley.com (Postfix) with ESMTP id B5CF74222B0 for ; Sun, 23 Sep 2007 18:04:35 -0500 (CDT) 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: emacs-orgmode@gnu.org The following quickie will give you a command that lists all matching lines in all of your Agenda files. John (defun org-multi-occur (regexp) (interactive "sList all lines matching: ") (multi-occur (mapcar 'get-file-buffer (org-agenda-files)) "org"))