From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Quick function to search all Agenda buffers Date: Mon, 24 Sep 2007 01:26:29 +0200 Message-ID: <87sl55ezfe.fsf@bzg.ath.cx> References: 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 1IZaqg-0007kv-1x for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 19:26:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZaqe-0007kj-FW for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 19:26:49 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZaqe-0007kg-A0 for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 19:26:48 -0400 Received: from mu-out-0910.google.com ([209.85.134.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZaqd-0000mA-V2 for emacs-orgmode@gnu.org; Sun, 23 Sep 2007 19:26:48 -0400 Received: by mu-out-0910.google.com with SMTP id g7so1845556muf for ; Sun, 23 Sep 2007 16:26:44 -0700 (PDT) In-Reply-To: (John Wiegley's message of "Sun, 23 Sep 2007 19:02:46 -0400") 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 John Wiegley writes: > (defun org-multi-occur (regexp) > (interactive "sList all lines matching: ") > (multi-occur (mapcar 'get-file-buffer (org-agenda-files)) "org")) There is a small typo: (defun org-multi-occur (regexp) (interactive "sList all lines matching: ") (multi-occur (mapcar 'get-file-buffer (org-agenda-files)) regexp)) ^^^^^^ Very useful, thanks! Comparing to that, org-registry looks like using a bulldozer to tidy up my room. But I still think it does make sense to directly look for the files where the current buffer is linked. Any suggestion welcome! -- Bastien