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

2014-06-04 Thread Thorsten Jolitz
Eric Abrahamsen writes: > Nicolas Goaziou writes: > >> Hello, >> >> Eric Abrahamsen 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 rege

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

2014-06-03 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen 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 over the buffer. >> I've sneakil

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

2014-06-03 Thread Nicolas Goaziou
Hello, Eric Abrahamsen 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 over the buffer. > I've sneakily cc'd Nicolas to see what he thinks

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

2014-06-03 Thread Eric Abrahamsen
Thorsten Jolitz writes: > Eric Abrahamsen writes: > >> Thorsten Jolitz writes: >> >>> Chris Poole 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-entr

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

2014-06-03 Thread Thorsten Jolitz
Eric Abrahamsen writes: > Thorsten Jolitz writes: > >> Chris Poole 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 (

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

2014-05-31 Thread Eric Abrahamsen
Thorsten Jolitz writes: > Chris Poole 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-pu

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

2014-05-31 Thread Thorsten Jolitz
Chris Poole 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"))) > tag 'age

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

2014-05-31 Thread Igor Sosa Mayor
Chris Poole 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 :: http://www.gnupg

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: https://github.com/chrispoole643/org-gtd/blob/6b13d4f

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

2014-05-31 Thread Igor Sosa Mayor
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

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 Eric Abrahamsen
Chris Poole 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 to searc

[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 the