From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Search files in a folder Date: Sun, 12 Sep 2010 21:51:33 -0400 Message-ID: <874oduqul6.fsf@archdesk.localdomain> References: <8739teiwsq.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=44228 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OuyCq-0005Em-0a for emacs-orgmode@gnu.org; Sun, 12 Sep 2010 21:51:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OuyCm-0001oN-VN for emacs-orgmode@gnu.org; Sun, 12 Sep 2010 21:51:39 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:33943) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuyCm-0001oD-P5 for emacs-orgmode@gnu.org; Sun, 12 Sep 2010 21:51:36 -0400 In-Reply-To: <8739teiwsq.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Sun, 12 Sep 2010 20:31:01 +0100") 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: Eric S Fraga Cc: org-mode mailing list , =?utf-8?B?64W47KCV7YOc?= Eric S Fraga writes: > On Mon, 13 Sep 2010 04:11:48 +0900, =EB=85=B8=EC=A0=95=ED=83=9C wrote: > >> I want to search org files in my /org folder. >> But I can't find a command to search files wholly. >> C-c a s (org-search-view) does search only with headline. >> I can't search the contents of my org files with just one command. >>=20 >> Does Org-mode have the function what I'm looking for? > > maybe org-mode does not but of course emacs does: M-x grep RET > or M-x occur RET > These work just fine. Org-mode also has a built-in interface to emacs' multi-occur function --- it searches for (and displays) all lines containing a given regexp in one's agenda files.[1] Simply type: C-c a / [regexp] E.g. C-c a / \(org\|org-\)mode Best, Matt Footnotes: [1] (info "(org) Agenda dispatcher") ,---- | `/' | Search for a regular expression in all agenda files and | additionally in the files listed in | `org-agenda-text-search-extra-files'. This uses the Emacs command | `multi-occur'. A prefix argument can be used to specify the | number of context lines for each match, default is 1. `----