From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Poole Subject: How to find the headline matching a string Date: Sat, 31 May 2014 16:07:11 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c20ed63789a004fab384fa Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqksU-0000QK-9V for emacs-orgmode@gnu.org; Sat, 31 May 2014 11:07:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WqksK-0007cH-4L for emacs-orgmode@gnu.org; Sat, 31 May 2014 11:07:22 -0400 Received: from mail-ob0-f182.google.com ([209.85.214.182]:40928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqksJ-0007c7-WE for emacs-orgmode@gnu.org; Sat, 31 May 2014 11:07:12 -0400 Received: by mail-ob0-f182.google.com with SMTP id wn1so2962687obc.41 for ; Sat, 31 May 2014 08:07:11 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --001a11c20ed63789a004fab384fa Content-Type: text/plain; charset=UTF-8 Hi all, Suppose I have a string, "my first task", that I know is tagged with "laptop". I want to search through the agenda files for a headline that matches this string, to be able to mark it as DONE (in an automated fashion). I can't find a function to search through for the headline --- is there one? Else, is it best to concat all the agenda files into a larger buffer, then parse the buffer and iterate through the headlines with org-element-map? Cheers, Chris --001a11c20ed63789a004fab384fa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

Suppose I have a string, "= my first task", that I know is tagged with "laptop".

I want to search through the agenda files for a headline = that matches this string, to be able to mark it as DONE (in an automated fa= shion).

I can't find a function to search through for the h= eadline --- is there one?

Else, is it best to conc= at all the agenda files into a larger buffer, then parse the buffer and ite= rate through the headlines with org-element-map?


Cheers,
Chris
--001a11c20ed63789a004fab384fa--