Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: [Golfing] Uncommenting a block

by stefbv (Curate)
on Apr 14, 2010 at 17:05 UTC ( [id://834728]=note: print w/replies, xml ) Need Help??


in reply to [Golfing] Uncommenting a block

So you want to embed TODO headlines in perl code, than use the global TODO list from agenda views to see what needs to be done further in your code, right? If yes, than it's an interesting approach, which certainly has it's advantages.

For this task, I use a (classic) remember TODO template to create new headlines in specific org files. This template will automatically add a link to the line of the code in the buffer was called from.

Cheers, Stefan

Replies are listed 'Best First'.
Re^2: [Golfing] Uncommenting a block
by LanX (Saint) on Apr 15, 2010 at 15:48 UTC
    > So you want to embed TODO headlines in perl code, than use the global TODO list from agenda views to see what needs to be done further in your code, right?

    yes kind of, many features of org-mode are very intuitive.

    For the records, the best solution I found so far is

    print; =org * TODO whatever ... ** =cut print;
    this is legal Perl code (but not legal POD because of missing blank lines and unknown directive)

    or

    sub ORG ($) { } print; ORG <<''; * TODO whatever ... ** print;

    Cheers Rolf

    UPDATE: repaired code, haven't taught my Wiki-expander to igore code tags yet...

      How about?:

      print; =for org * TODO whatever ... ** =cut print;

      Stefan

      Update: added spaces before and after POD.

      Update2: s/spaces/empty lines/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://834728]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found