From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: using rgrep, ag, etc in folded org files? Date: Mon, 12 Sep 2016 16:36:44 +0100 Message-ID: <878tuxw2nn.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjTJG-0005wC-4p for emacs-orgmode@gnu.org; Mon, 12 Sep 2016 11:38:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjTJA-0002ZH-Rd for emacs-orgmode@gnu.org; Mon, 12 Sep 2016 11:38:13 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:37336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjTJA-0002Or-LP for emacs-orgmode@gnu.org; Mon, 12 Sep 2016 11:38:08 -0400 Received: by mail-wm0-f49.google.com with SMTP id c131so64227058wmh.0 for ; Mon, 12 Sep 2016 08:37:47 -0700 (PDT) In-Reply-To: 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" To: joakim@verona.se, emacs-orgmode@gnu.org Hi Joakim, The function org-reveal needs to be run after the search is executed. If you are using the built-in emacs rgrep (for example), I think you need to add a function to next-error-hook. Grep for =E2=80=9Cadd-hook 'occur-mode-find-occurrence-hook=E2=80=9D in org.el for inspiration. (Arguably this hook function should be added to org-mode, if enough people find it useful). --=20 Aaron Ecay