Re: [O] How to find the headline matching a string

2014-06-04 Thread Thorsten Jolitz
Eric Abrahamsen e...@ericabrahamsen.net writes: Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: I guess it shouldn't be too surprising -- the org element stuff is completely parsing the entire buffer on every pass. The other function

Re: [O] How to find the headline matching a string

2014-06-03 Thread Thorsten Jolitz
Eric Abrahamsen e...@ericabrahamsen.net writes: Thorsten Jolitz tjol...@gmail.com writes: Chris Poole li...@chrispoole.com writes: Eric Abrahamsen: the `org-map-entries' function can be given a scope of 'agenda That worked perfectly, thanks. Here's what I ended up with: (org-map-entries

Re: [O] How to find the headline matching a string

2014-06-03 Thread Eric Abrahamsen
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Abrahamsen e...@ericabrahamsen.net writes: I guess it shouldn't be too surprising -- the org element stuff is completely parsing the entire buffer on every pass. The other function probably boils down to passing a few targeted regexps

[O] How to find the headline matching a string

2014-05-31 Thread Chris Poole
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

Re: [O] How to find the headline matching a string

2014-05-31 Thread Eric Abrahamsen
Chris Poole li...@chrispoole.com writes: 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

Re: [O] How to find the headline matching a string

2014-05-31 Thread Chris Poole
Eric Abrahamsen: the `org-map-entries' function can be given a scope of 'agenda 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

Re: [O] How to find the headline matching a string

2014-05-31 Thread Igor Sosa Mayor
Chris Poole li...@chrispoole.com 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

Re: [O] How to find the headline matching a string

2014-05-31 Thread Chris Poole
Igor Sosa Mayor: could you maybe send a little more of the code? I would like to understand how it exactly works. Sure --- it's part of a quick setup file for the GTD methodology that I'm writing. The specific function in question is here:

Re: [O] How to find the headline matching a string

2014-05-31 Thread Igor Sosa Mayor
Chris Poole li...@chrispoole.com writes: Sure --- it's part of a quick setup file for the GTD methodology that I'm writing. The specific function in question is here: interesting. Thanks for sharing the code. -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890

Re: [O] How to find the headline matching a string

2014-05-31 Thread Thorsten Jolitz
Chris Poole li...@chrispoole.com writes: Eric Abrahamsen: the `org-map-entries' function can be given a scope of 'agenda 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)))

Re: [O] How to find the headline matching a string

2014-05-31 Thread Eric Abrahamsen
Thorsten Jolitz tjol...@gmail.com writes: Chris Poole li...@chrispoole.com writes: Eric Abrahamsen: the `org-map-entries' function can be given a scope of 'agenda That worked perfectly, thanks. Here's what I ended up with: (org-map-entries (lambda () (when (equal title (org-get-heading t