Re: [O] Create a view of just source-code blocks?

2011-07-06 Thread Eric Schulte
Michael Hannon jm_han...@yahoo.com writes:

 Greetings.  I'd like to be able to view just the source-code blocks in a Babel
 file.  I.e., I'd like to do something logically equivalent to tangle, but
 without creating a separate file, just a view within the current file.  Any
 suggestions?

 Thanks,

 -- Mike


Hi Mike,

Something like the attached should work, although I'm not sure if/how
this could be incorporated into Org-mode.



hide-non-code.el
Description: application/emacs-lisp

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/


Re: [O] Create a view of just source-code blocks?

2011-07-06 Thread Rainer M Krug
On Wed, Jul 6, 2011 at 1:21 AM, Eric Schulte schulte.e...@gmail.com wrote:

 Michael Hannon jm_han...@yahoo.com writes:

  Greetings.  I'd like to be able to view just the source-code blocks in a
 Babel
  file.  I.e., I'd like to do something logically equivalent to tangle,
 but
  without creating a separate file, just a view within the current file.
  Any
  suggestions?
 
  Thanks,
 
  -- Mike
 

 Hi Mike,

 Something like the attached should work, although I'm not sure if/how
 this could be incorporated into Org-mode.



I like the idea of only showing the source code blocks, but I would think
that the org way would be to fold everything else and to od=pen the source
code blocks? Would that be possible? (I must say I haven't looked at your
solution, Eric)

Rainer'



 --
 Eric Schulte
 http://cs.unm.edu/~eschulte/




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


Re: [O] Create a view of just source-code blocks?

2011-07-06 Thread Eric Schulte
Rainer M Krug r.m.k...@gmail.com writes:

 On Wed, Jul 6, 2011 at 1:21 AM, Eric Schulte schulte.e...@gmail.com wrote:

 Michael Hannon jm_han...@yahoo.com writes:

  Greetings.  I'd like to be able to view just the source-code blocks in a
 Babel
  file.  I.e., I'd like to do something logically equivalent to tangle,
 but
  without creating a separate file, just a view within the current file.
  Any
  suggestions?
 
  Thanks,
 
  -- Mike
 

 Hi Mike,

 Something like the attached should work, although I'm not sure if/how
 this could be incorporated into Org-mode.



 I like the idea of only showing the source code blocks, but I would think
 that the org way would be to fold everything else and to od=pen the source
 code blocks? Would that be possible? (I must say I haven't looked at your
 solution, Eric)


folding everything else is basically exactly why my solution does :)

Best -- Eric


 Rainer'



 --
 Eric Schulte
 http://cs.unm.edu/~eschulte/



-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] Create a view of just source-code blocks?

2011-07-06 Thread Michael Hannon
Great.  Thanks, Eric.  I haven't done exhaustive testing of your code, but so 
far it seems to do exactly what I had in mind.

-- Mike




- Original Message 
 From: Eric Schulte schulte.e...@gmail.com
 To: Michael Hannon jm_han...@yahoo.com
 Cc: Org-Mode List emacs-orgmode@gnu.org
 Sent: Tue, July 5, 2011 4:21:20 PM
 Subject: Re: [O] Create a view of just source-code blocks?
 
 Michael Hannon jm_han...@yahoo.com  writes:
 
  Greetings.  I'd like to be able to view just the  source-code blocks in a 
Babel
  file.  I.e., I'd like to do something  logically equivalent to tangle, but
  without creating a separate file,  just a view within the current file.  Any
   suggestions?
 
  Thanks,
 
  -- Mike
 
 
 Hi  Mike,
 
 Something like the attached should work, although I'm not sure  if/how
 this could be incorporated into Org-mode.
 
 
 -- 
 Eric  Schulte
 http://cs.unm.edu/~eschulte/
 



[O] Create a view of just source-code blocks?

2011-07-05 Thread Michael Hannon
Greetings.  I'd like to be able to view just the source-code blocks in a Babel
file.  I.e., I'd like to do something logically equivalent to tangle, but
without creating a separate file, just a view within the current file.  Any
suggestions?

Thanks,

-- Mike