From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivanov Dmitry Subject: Re[2]: Literate programming Date: Tue, 11 May 2010 11:22:56 +0400 Message-ID: <236908404.20100511112256@gmail.com> References: <453163112.20100507180954@gmail.com> <87wrvfctnk.fsf@gmail.com> <4BE8F13F.9030309@jboecker.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=33393 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBl9u-000859-PF for emacs-orgmode@gnu.org; Tue, 11 May 2010 04:49:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBl9t-0000KR-GD for emacs-orgmode@gnu.org; Tue, 11 May 2010 04:49:46 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:50753) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBjo1-0002jQ-SK for emacs-orgmode@gnu.org; Tue, 11 May 2010 03:23:06 -0400 Received: by fxm9 with SMTP id 9so1560344fxm.0 for ; Tue, 11 May 2010 00:23:04 -0700 (PDT) In-Reply-To: <4BE8F13F.9030309@jboecker.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?iso-8859-1?Q?Jan_B=F6cker?= Cc: emacs-orgmode@gnu.org > What is this "tree buffer" you speak of? The tree buffer is a library from CEDET project, widely used in ECB. Look at this screenshot, and you'll see tree buffers at the top of the frame: http://ecb.sourceforge.net/screenshots/12.png > Are you telling me that I can already use Org to view the outline > Leo-style, with the outline structure (folded to the "content" startup > visibility) in one window and an indirect buffer narrowed to the body > text of the current headline in a second window? I did it with org-babel. Install it, using this manual: http://orgmode.org/worg/org-contrib/babel/intro.php then you can try treir sample, that I rewrote in Perl: * Prefix Here we have the code, that is output in the beginning of the file #+srcname: hello-world-prefix #+begin_src perl print "/-----------------------------------------------------------\\\n"; #+end_src * Postfix This code will be used at the end of the file. #+srcname: hello-world-postfix #+begin_src perl print "\-----------------------------------------------------------/"; #+end_src * File body This is the main code of the file. #+srcname: hello-world #+begin_src perl :tangle hello.pl <> print "| hello world |\n"; <> #+end_src ---------end sample--------------------- You can edit the code in an indirect buffer, using C-c '. Tangle it with (org-babel-tangle). > That would be wonderful! (If not, I would definitely be interested in > creating such a feature, but I have no idea where to start.) The first step will be understanding, how does the CEDET library tree-buffer.el work.