From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Sosa Mayor Subject: Re: How to find the headline matching a string Date: Sat, 31 May 2014 19:00:32 +0200 Message-ID: <8738fp51e7.fsf@gmail.com> References: <87bnuedl38.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wqmdv-0000Wa-2u for emacs-orgmode@gnu.org; Sat, 31 May 2014 13:00:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wqmdp-0007ca-LR for emacs-orgmode@gnu.org; Sat, 31 May 2014 13:00:27 -0400 Received: from plane.gmane.org ([80.91.229.3]:58302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wqmdp-0007cI-FB for emacs-orgmode@gnu.org; Sat, 31 May 2014 13:00:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wqmdi-00024c-WD for emacs-orgmode@gnu.org; Sat, 31 May 2014 19:00:15 +0200 Received: from chello062178061061.21.11.vie.surfer.at ([62.178.61.61]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 May 2014 19:00:14 +0200 Received: from joseleopoldo1792 by chello062178061061.21.11.vie.surfer.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 31 May 2014 19:00:14 +0200 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 Chris Poole writes: > That worked perfectly, thanks. Here's what I ended up with: > > (org-map-entries (lambda () > (when (equal title (org-get-heading t t)) > (org-entry-put (point) "TODO" "DONE"))) > tag 'agenda) could you maybe send a little more of the code? I would like to understand how it exactly works. Many thanks in advance. -- :: Igor Sosa Mayor :: joseleopoldo1792@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido :: ::