From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?EUC-KR?B?s+vBpMXC?= Subject: Re: Search files in a folder Date: Mon, 13 Sep 2010 13:09:58 +0900 Message-ID: References: <8739teiwsq.wl%ucecesf@ucl.ac.uk> <874oduqul6.fsf@archdesk.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1598415344==" Return-path: Received: from [140.186.70.92] (port=45364 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ov0Mj-0007rp-0Y for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 00:10:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ov0Mh-0006TM-Me for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 00:10:00 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:33158) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ov0Mh-0006TI-Gn for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 00:09:59 -0400 Received: by iwn33 with SMTP id 33so6823106iwn.0 for ; Sun, 12 Sep 2010 21:09:58 -0700 (PDT) In-Reply-To: <874oduqul6.fsf@archdesk.localdomain> 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: Matt Lundin , emacs-orgmode@gnu.org --===============1598415344== Content-Type: multipart/alternative; boundary=0016e6d2625f0c7f6204901c45a1 --0016e6d2625f0c7f6204901c45a1 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: quoted-printable Thank you everyone. I learned I could do it with grep, but I don't know how to use grep properly. Isn't there no way to search files which are not agenda file? Sincerely, Jeongtae 2010/9/13 Matt Lundin > Eric S Fraga writes: > > > On Mon, 13 Sep 2010 04:11:48 +0900, =B3=EB=C1=A4=C5=C2 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. > >> > >> 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. > `---- > > > --0016e6d2625f0c7f6204901c45a1 Content-Type: text/html; charset=EUC-KR Content-Transfer-Encoding: quoted-printable Thank you everyone.

I learned I could do it with grep, but I don'= ;t know how to use grep properly.

Isn't there no way to search f= iles which are not agenda file?

Sincerely, Jeongtae

2010/9/13 Matt Lu= ndin <mdl@imapmail= .org>
Eric S Fraga <uce= cesf@ucl.ac.uk> writes:

> On Mon, 13 Sep 2010 04:11:48 +0900, =B3=EB=C1=A4=C5=C2 <basil83@gmail.com> wrote:
>
>> I want to search org files in my /org fold= er.
>> 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 comm= and.
>>
>> 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 a= nd
|      additionally in the files listed in
|      `org-agenda-text-search-extra-files'.  This = uses the Emacs command
|      `multi-occur'.  A prefix argument can be use= d to specify the
|      number of context lines for each match, default is 1.=
`----



--0016e6d2625f0c7f6204901c45a1-- --===============1598415344== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1598415344==--